I am trying to make small games which will be displayed one after the another in sequence in a master flash movie. each game needs some external parameters like game.swf?para1=111¶2=222
Now I dont like that method because browser will redownload the whole game when parameter changes. So I am loading the movie by :
first trace works corectly because is called on the onLoad event.
second one dosen’t work because the trace is executed before the variables load. you should have to wait for them to load in order to trace corectly
or put in frame 1 something like
(the_name_of_the_first_mc).movExistingEmptyClip.onLoad = function() { bla bla
from what you told me here… “if they are undefined the movie goes back to frame 1” it should work… I’m sorry I though you solved it
Let’s see if i got it right
instead of this.Para1 =“111”; you try
this.movExistingEmptyClip.Para1 =“111”;
I didn’t understood your problem in the first place.
still i don’t get it though why trace(this) is pointing to the same location (_level0.movQuestion)
the second one shoul point to _level0.movQuestion.movExistingEmptyClip - at least I think so :rolleyes:
it will be available in game.swf also .
but it doesnot.
my problem is that the main flash was written by someone else and it has only one frame and relies on events like _Result, onLoad etc
i am scared to change it too much.
If it was in my style (go back to frame 1 untill condition) maybe i could set a var in game.swf and wait for it to be set.
i have tried enterframe also.
for now i am going back to GET method but please I am still looking for an answer.