This content has been marked as final. Show 9 replies
if your variable is foo=bar
in flash you just access it by _root.foo
Right, but if my variable is foo=bar, I want to know how to change "bar" according to my URL string.
change it in flash and repost it or just change it in flash?
I am using the Flash Active Content extension - for more info:
This extension is a workaround so the user does not have to click in the flash area to activate it for use, due to the IE Active Content Update. It uses an external .js file to embed the .swf file.
What I am asking is if my URL variable changes from "www.website.com/index.php?myURL=red" to "www.website.com/index.php?myURL=blue", how do I get the PHP to get that information?
i havent tested this but this will get you in the right direction
var my_lv:LoadVars = new LoadVars();
my_lv.myURL = _root.myURL;
my_lv.send("script.php", "_self", "POST");
also if post does not work try the GET method
I don't want to change my actionscript.
This is what I have to embed the .swf:
Notice that I have outlined what needs to change dynamically according to my URL variable.
And this is the .js file it generates as well: AC_RunActiveContent.js:
sorry but im leaving for the day ...hopefully someone else can help you ...i wont be back till monday ...good luck!
Good idea - I think I'll head out myself as well... it might be easier to take another look at it on Monday when I have a fresh brain!