...

View Full Version : Loading Flash GET variables



Sicton
03-31-2005, 08:39 PM
Right, I'm sure this is very simple but I'm not sure how to do it.

I want to load a flash file e.g. "file.swf" but call a variable when loading the file e.g. "file.swf?number=2" and then display that number in flash.

ryno
04-04-2005, 11:17 PM
We need a bit more information to give you appropriate help. Are you talking about loading this variable from one flash movie into another? If so, you could just load the movie ( loadMovieNum("file.swf", 1, POST); ) and have a conditional statement on the first frame of the newly loaded "file.swf," which would look something like this:


if(_level0.number==2){
DoSomething
}

This is assuming that the "number" variable exists on level 0 of your original movie (hence, the _level0).

Hope this helps!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum