PDA

View Full Version : Levels or Layers


BMWtech
10-26-2005, 08:12 PM
Hey guys, obvious newbie here with a pretty simple question. I am using Flash MX and having plenty of success with the tutorials thus far but when it comes to multi-level MCs I am a bit confused as to what constitutes a level. Is the concept similar to image layers? When I drag 2 seperate MCs onto the main stage and assign actions to them am I creating seperate levels or just 2 MCs on the SAME level? I am asking because I need a better understanding of how to format PATHs in my scripts

Paerez
10-26-2005, 08:22 PM
All the stuff you drag into layers in the GUI go to the same level, which is usually _level0, but you should just call it _root. When you attach or load movies to your clip using actionscript, some of the functions allow you to load it to a different "level".

I like to avoid using levels, and just use _root. If you need to show and hide movies, or go from one movie to the next, just use gotoAndStop or use the MovieClip._visibility property.

Also, as a general tip, avoid using _root. Try to use _parent to go up a level. Doing this will allow you to re-use that code in a different setting, where _root may be somewhere else.

BMWtech
10-26-2005, 09:14 PM
Hey, thanks for such a quick reply. So my question has been answered and it is as I suspected, you have to create another level just as you have to create another layer for an Image (just dragging them onto the stage .......well, just puts them on the same level/layer as whatever else is on there) . I also noted while reflecting on a tutorial that Levels may not be as needed for the type of work I am interested in doing (mostly just webpage design). I have been using _root for my PATHs and was just getting ahead of myself by worrying about levels then.....thanks again

oldnewbie
10-26-2005, 09:25 PM
Levels don't exist in Flash authoring, only in the Flash players...

Using _level0 (which I prefer!) when dealing with one main movie is exactly the same as using _root.

You might want to check this for more info...

http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_16293

BMWtech
10-26-2005, 10:36 PM
Niiiiiiiiiice link, between it and the response I have gotten here Im set str8 on this topic now (I think, I hope LOL).......well it should be more than enough info for my feeble mind to process. Hey if you guys ever need any car advice feel free to post a question or private message to me. I should be able to offer some advice anywhere from "yeah they are charging you too much" to some pretty detailed diagrams and commentary on how to do it yourself if ya need to.