1
sadistiko
How to import variables from xoops to flash?
  • 2006/2/5 21:09

  • sadistiko

  • Friend of XOOPS

  • Posts: 477

  • Since: 2004/12/13


This is more flash question than xoops, but I hope someone will know how to do this.
I have in header flash animation and I want to load XOOPS variables into flash for use in header.
Thanx in advance.
Croatian Xoops support site:
http://www.xoopshr.org
Lowcost linux hosting:
http://www.adpgroup.hr

2
skalpa
Re: How to import variables from xoops to flash?
  • 2006/2/5 22:51

  • skalpa

  • Quite a regular

  • Posts: 300

  • Since: 2003/4/16


Personally I think the easiest way is to use the flashVars method (at least if you don't want to send a huge amount of data to your flash movie).
For instance, if you write something like this in your template:
<param name="FlashVars" value="title=<{$xoops_sitename|escape:'url'}>" />


you'll get a 'title' variable available in your flash movie, containing the content of the 'xoops_sitename' template var.

skalpa.>
Any intelligent fool can make things bigger, and more complex. It takes a touch of genius, a lot of courage, to move in the opposite direction.
Two things are infinite: the universe and human stupidity; and I'm not sure about the 1st one (A.Einstein)

3
sadistiko
Re: How to import variables from xoops to flash?
  • 2006/2/6 6:16

  • sadistiko

  • Friend of XOOPS

  • Posts: 477

  • Since: 2004/12/13


Thank you, thank you, thank you...
This is great, but of course I need more
It works, and this is what I'm looking for.
Now I need XOOPS variable that stores info about curent loaded module. Where to find that info about XOOPS variables?
Croatian Xoops support site:
http://www.xoopshr.org
Lowcost linux hosting:
http://www.adpgroup.hr

4
sadistiko
Re: How to import variables from xoops to flash?
  • 2006/2/6 6:27

  • sadistiko

  • Friend of XOOPS

  • Posts: 477

  • Since: 2004/12/13


OK, I found solution!
I will use $xoops_pagetitle
If there is some better solution just say. This will do the job for me, but if there is something better I'm interested.

Well better solution will be if I can get whole path to pages, because I need to distinguish some parts of same module. I will have several parts (articles) in news module, so I must differ those pages.
Croatian Xoops support site:
http://www.xoopshr.org
Lowcost linux hosting:
http://www.adpgroup.hr

5
sadistiko
Re: How to import variables from xoops to flash?
  • 2006/2/6 9:12

  • sadistiko

  • Friend of XOOPS

  • Posts: 477

  • Since: 2004/12/13


Ah, I love it!
I didn't noticed that news module (1.44) put whole name with module, category and name of article in pagetitle variable. GREAT, GREAT, GREAT
Croatian Xoops support site:
http://www.xoopshr.org
Lowcost linux hosting:
http://www.adpgroup.hr

Login

Who's Online

471 user(s) are online (360 user(s) are browsing Support Forums)


Members: 0


Guests: 471


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits