Hi everyone, I found this blog entry which shed light on how to pass variables to your SWF this way :
Here is some usefull function you can use. Put it in your Document Class. For those who don’t know what that is, just put it on the stage on Frame 1 then.
So it’s quite simple to use it:
I used these articles as inspiration. Make sure you READ the FIRST COMMENT of the post since it outlines an important omission from the author.
link to Theo’s Blog entry
Thank you! You just saved my life.
I’m trying to pass a variable like this from as3
private var _movie:String=”mymovie.swf”
var mRequest:URLRequest = new URLRequest(“swfloader.swf?m=”+_movie);
But I get a url not found error, not because it doesn’t find mymovie.swf, but it can’t load swfloader.swf at all, I don’t understand why.
If I remove the “?m=+_movie” then it works, but of course it doesn’t load the final movie…
Thanks for solution!!!!!!!!11
really preciated!!!!! mate!
Thanks, finally i found it 🙂 you saved some hours for me
you made my day (or nigth).
thx a lot..
Is this injection safe?