How can I get FlashVars values in ActionScript 2.0?
Posted
by AndreMiranda
on Stack Overflow
See other posts from Stack Overflow
or by AndreMiranda
Published on 2009-05-22T05:39:44Z
Indexed on
2010/06/12
7:02 UTC
Read the original article
Hit count: 282
Hi!
I have to dynamically send a flashvars value from <object>/<embed>
, for example "<object name="flashvars" value="test=myxml.xml">
to my swf file.
And in my AS, I have this:
var xmlPath:String = _level0.test;
doc.load(xmlPath);
So, this way I want to read several xml files (at least it's my intention!). But nothing of what I do works...
I also tried
doc.load(_root.test)
but it didnt work too.
If I do:
doc.load("someXML.xml")
It works just fine!!
I'm trying to solve this for many many hours and still didn't find any solution!!
Thanks in advance!!!
© Stack Overflow or respective owner