View Full Version : _level0 or 5 or 10, where are these really?
Afterwork
01-27-2002, 10:36 AM
Hello folks,
When refering to _levels for loading and unloading movies or anything else for that matter, like _level0 or _level10. Where is _level10? I believe that _level0 is the main timeline, right? So _level10 would be another scene or the tenth layer or what?
Forgive my ignorance, this is something that has bugged me but I overlooked it may times????
Also what are your preferences when it comes to creating or using _levels? I mean can I use _level2, 6, 8? Any number I wish?
Thanks for the help...
Tom
zerohero
01-27-2002, 03:48 PM
you have answered your own question...;)...and you can use any _level u want...
go here if you want to read more:
http://www.were-here.com/forum/tutorials/levelsdepth/index.html
Cheerio,
ZERO
HERO
pixelwit
01-27-2002, 04:07 PM
Level0 is indeed the main timeline. Levels are like shelves above your main timeline. In Flash (like carpentry), your levels (shelves) don't exist until you build them. The only way to create a level (shelf) is to use the loadMovie command. This places a different SWF file on top of your main timeline. Just like a carpenter, you can place the SWF you are loading (the shelf) at any level (height) you desire (try to keep away from level numbers over a million or so, Flash gets shaky if you do). Whenever you want to control a movie that is loaded on a level other than the main timeline, you will need to remember it's level number so choose your level numbers sensibly.
I hope my carpentry analogy hasn't confused you more than it's helped.
-PiXELWiT
http://www.pixelwit.com
Afterwork
01-28-2002, 06:55 PM
Thanks for your response, mo! better now!......
Tom :D
kabezz
01-29-2002, 06:17 PM
i have a question related to this level things, so i thought i could use this thread...
I have a main movie and have four buttons who 'load movie' four new swf's. I did this so i could use tha main movie as 'the banner' plus my volumeregulator would always be accesible. I used a black square to mask whats behind on level o (the main i presume) en put a 'home' button (actually to unload the swf) on evry one of the new swf's. The problem now is that, whenever my cursor passes 'masked' buttons of the main movie they are still active. How can i disable them while being on this new level? Please don't tell me i have to redo the whole structure...
thanks sincerely
Ricod
01-29-2002, 06:37 PM
U could for instance put the buttons in a mc, place a stop on the frame with the button in it and an empty one later, also with a stop. When u load the new swf, u tell the mc with the button to gotoAndStop at the empty frame. When u unload, tell the mc to go back to the button containing frame.
kabezz
01-29-2002, 08:40 PM
thanks for u'r quick reply Ricod! Too bad u'r dealing with real newbies... (somewhere i read: i'm such a newbie it's not even funny. that's the feeling:D )
ok, i have done something similar with my volumecontrol, but how do i assign this goto frame and so to a mc with different buttons? do i have to do this on the unloadbutton of the new swf? I tried to do something like u said but i didn't know where to put the actions.
Isn't there a script that 'blocks' actions( by level) once a higher level is loaded?
Bedankt!
Ricod
02-01-2002, 09:07 AM
let's say u have the following :
- a mc that contains the buttons u want to switch off, containing at least 2 frames, labeld "on" and "off". Both frames have a "stop();" on it. The mc has the label "buttonSwitcher" and is on the main timeline (thus, the path would be _root.buttonSwitcher)
- 2 buttons, responsible for loading and unloading a swf.
The load button could say sumthing like :
on (release){
loadMovie ("secondMovie",1);
_root.buttonSwitcher.gotoAndStop ("off");
}
and the unload would tell "buttonSwitcher" to go to and stop at the "on" frame, so your buttons work again.
kabezz
02-01-2002, 09:19 AM
that works. i got around my problem by using labels on my mainmovie and placed the ripped fla's on a modified background with no buttons. the whole project got to heavy though . But with your information i got some new ideas to work with. Thanks, i appriciate your help very much.
vBulletin® v3.7.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.