View Full Version : Simple if
Hey,
I want something like this to work:
on (release) {
unloadMovieNum(4);
loadMovieNum("contact.swf",4);
if( "_.level3.back_fader.swf" == loaded) {
}
else {
loadMovieNum("back_fader.swf",3)
}
}
Do you understand the problem?
Please explain to me what I should write instead of "loaded"
Ricod
10-12-2002, 04:47 PM
do a search on the word 'swonk' or 'swonking'. You'll get a very nice explanation :) in another thread (take the oldest one you can find, not the most recent one, cuz that will be this one) !
crabcake
10-14-2002, 03:05 PM
There are a couple ways of doing this:
Really easy - you can set a variable from your movie in level 3 when it is loaded. You put a line of script in your movie back_fader.swf that says
something like
movieLoaded = 1;
then in your test script you write:
on (release) {
unloadMovieNum(4);
loadMovieNum("contact.swf",4);
if( _.level3.movieLoaded == 1) {
}
else {
loadMovieNum("back_fader.swf",3)
}
}
By the way, you only refer to the level in actiontionscript, not the movie name unless you are loading it. You don't need to write if(_level3.backfader,swf == loaded) because Flash doesn't care what you have loaded at level 3, just that it is loaded. You also shouldn't use quotes, because these turn your expression into a string.
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.