Answered
using loadmovienum + calling function
Hi,
I would like to load a new swf into level 2 (previously empty) and then - on the next line of the calling function - call a function in the newly loaded swf on level 2. Is this possible?
It seems to me that I should use an .onload event, or similar to determine if the new swf on level 2 has finished loading and the scripts in it are available. But what would I use, how would I determine that?
My script currently:
*********************
loadMovieNum("data/games/games.swf", 2);
tBGcolor = gamesArr[clickedUnit][2];
tGamePath = gamesArr[clickedUnit][1];
_level2.playGame(tBGcolor, tGamePath);
*********************
Many thanks,
Nik
I would like to load a new swf into level 2 (previously empty) and then - on the next line of the calling function - call a function in the newly loaded swf on level 2. Is this possible?
It seems to me that I should use an .onload event, or similar to determine if the new swf on level 2 has finished loading and the scripts in it are available. But what would I use, how would I determine that?
My script currently:
*********************
loadMovieNum("data/games/games.swf", 2);
tBGcolor = gamesArr[clickedUnit][2];
tGamePath = gamesArr[clickedUnit][1];
_level2.playGame(tBGcolor, tGamePath);
*********************
Many thanks,
Nik