Search  

MAKING THE XML LOCATION A VARIABLE THAT JAVASCRIPT CAN PASS TO FLASH???

HomeForumsFlash DiscussionMaking the XML location a variable that Javascript can pass to flash???
20187 quickflix
5 posts
Bought between 10 and 49 items

Hi Flashdenners,

Is it possible to make the XML location a variable that Javascript can pass into flash…?

Really need some help on this one! :)

Posted about 1 month ago
63061 Pdesignx
559 posts
Exclusive author Author was featured Referred at least one person Sold between 1 000 and 5 000 dollars Bought between 10 and 49 items

just add ?variable=some.xml at the end of the swf name in the embed code…

<param name="movie" src="xxx.swf?variable=some.xml" />

i think that does the job well

just call the variable in actionscript like that, _root.variable

Posted about 1 month ago
41372 VF
451 posts
Exclusive author Item was featured Referred at least one person Sold between 10 000 and 50 000 dollars Bought between 1 and 9 items
If you are using swfobject method to embed, then adding the following lines will work:
var myPath="myFile.xml";
so.addVariable("xmlPath", myPath); 
Posted about 1 month ago
20187 quickflix
5 posts
Bought between 10 and 49 items
just add ?variable=some.xml at the end of the swf name in the embed code…
<param name="movie" src="xxx.swf?variable=some.xml" />

i think that does the job well

just call the variable in actionscript like that, _root.variable

Thanks im almost there – having one of those days.. My actionscript should therefore be ..

_root.variable = xml.load(‘some.xml’;) ?

Thx life saver

Posted about 1 month ago
67919 flashblue
194 posts
Exclusive author Author was featured Referred at least one person Sold between 5 000 and 10 000 dollars Bought between 1 and 9 items

There is an example here:

http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_15683

Posted about 1 month ago
3113 geoken
570 posts
Author was featured Sold between 1 000 and 5 000 dollars Bought between 1 and 9 items

No.

It would be xml.load(_root.variable)

Posted about 1 month ago
20187 quickflix
5 posts
Bought between 10 and 49 items

Thanks every one ive got it nailed now! Much appreciated, you rock!

Posted about 1 month ago