I’m creating a swf file that uses conditional statements to 1) load a second set of movieclips once a counter (number) has reached a certain value, and to 2) reload the swf once the counter has reached another value. Unfortunately, I am currently unable 1) get the second set of movieclips to load (using the visible attribute), or 2) to figure out how to get the swf to reload.
For the reload, flash keeps telling me I have accessed a possibly undefined method. This is the abbreviated code:
counter:Number = 0;
drape1_mc.alpha=0;
drape2_mc.visible=false;
drape3_mc.visible=false;
drape4_mc.visible=false;
drape5_mc.visible=false;
if (counter==43) {
drape1_mc.visible=true;
drape2_mc.visible=true;
drape3_mc.visible=true;
drape4_mc.visible=true;
drape5_mc.visible=true;
}
I’ve been tracing the counter, so I know that works, but the conditional statement does not. My instructor told me that it doesn’t need to be in a function, but he is unavailable for further guidance. Help!