View Full Version : flashvars
van21691
11-21-2008, 03:17 AM
I am doing http://www.kirupa.com/web/xml/examples/squirrelfinder.htm that one. And what I want is that I want other people to use that flash but different xml, the flash will be hosted on my site, so there is no way that others can edit the xml link.
Instead of using the // load the xml file!
squirrel_xml.load("http://www4.pcriot.com/text.xml"); that is on the flash. I want to have it on the code like flashvars='XMLURL'. Is this possible?
I want their own xml to load instead of the one in my flash.
_Aerospace_Eng_
11-21-2008, 04:41 AM
Are you using actionscript 2.0 or 3.0?
gnomeontherun
11-21-2008, 12:27 PM
You could pass the variable easily by using swfObject to embed your flash file.
van21691
11-22-2008, 03:16 AM
I am using AS2.
Can you give me an example how to use swfObject
gnomeontherun
11-22-2008, 09:57 AM
http://www.codingforums.com/showthread.php?t=137848
_Aerospace_Eng_
11-22-2008, 10:20 PM
Change
squirrel_xml.load("http://www4.pcriot.com/text.xml");
to
squirrel_xml.load(_level10.flashvarname);
Change flashvarname to match your flashvars variable. I believe this would also work
squirrel_xml.load(this.flashvarname);
van21691
11-23-2008, 07:35 AM
squirrel_xml.load(this.flashvarname);
how will the code look like if you embed it
_Aerospace_Eng_
11-24-2008, 02:11 AM
how will the code look like if you embed it
Its simple if you are using SWFObject. Post your code. I also recommend that you don't use embed as it doesn't help towards progressive enhancement.
van21691
11-25-2008, 05:37 AM
Its simple if you are using SWFObject. Post your code. I also recommend that you don't use embed as it doesn't help towards progressive enhancement.
this will be embed not on my site but different site, so i need to embed it with flashvars
something like
flashvars='http://theirsite.com/filename.xml
_Aerospace_Eng_
11-25-2008, 05:46 AM
flashvars="xmlfile=http://theirsite.com/filename.xml"
van21691
11-26-2008, 05:04 AM
there you go, it works. thanks for the help
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.