View Full Version : How to make a level invisible ?
nebraska
04-30-2002, 01:19 PM
Hi,
I try to load a swf movie and make it invidsible until an "on (press)" event but it doesn t work.
This what I wrote on the first frame of my main scene:
loadMovieNum ("carte.swf",3);
_level3._visible=false;
But the movie loaded is visible all the time, how can I do?
JHallam
04-30-2002, 02:32 PM
Well just use this:
loadMovieNum ("carte.swf",3);
_level3.carte.swf._visible=false;
That should work fine
nebraska
04-30-2002, 03:17 PM
still doesn't work. I really don't understans why. Any other suggestions??
NE
_level3._visible = false;
your first piece of code should work.
what level is the code on? and is that level definately loaded?
BLEEDs
nebraska
05-02-2002, 07:40 AM
it doesn't bleeda,
The code appears on the first frame of the animation I try to load and is on level 0.
The code you gave was the same i used before and it does not work, that's very strange...
pinkaboo
05-02-2002, 08:23 AM
Bleeda's advice should definitely work, are you positive that you have anything on _level3? I don't mean to sound funny but are you getting confused with layers and levels by any chance?
Double check that you actually have anything loaded onto _level3, if that fails, try posting your fla as a zip file here for peeps to have a look at for you :P
if the code appears on the first frame of _level0, then surely there isn't a _level3???
what frame on _level0 do u load _level3. thats where u want the _visible code
BLEEDs
pinkaboo
05-02-2002, 09:18 AM
hmm, yeah it's because the _level3._visible bit is being actioned before _level3 has finished loading in. I just tried to check this by putting a variable into a loaded file on _level3
(_level0.loaded == "yesIhave")
and then sticking a mc onto the main timeline which checks to see if that variable is present and then makes _level3 invisible:
onClipEvent (enterFrame) {
if (_level0.loaded == "yesIhave") {
_level3._visible = false;
}
}
that worked so it's a matter of getting it to load first.
The code appears on the first frame of the animation I try to load and is on level 0.
Now I'm confused cos I was going to say how about sticking
_level3._visible = false;
into the first frame of your loaded movie, but do you mean that you have tried that already? I just did a test swf and that worked, but maybe my test wasn't weighty enough and loaded too quickly?
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.