Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

difference between _root and _level

Answer Posted / kunal

Differences between _root and _level0

At first glance it may seem that _root and _level0 refer to
the same thing. However, they are not identical.

The property _root refers to the main timeline of the movie
from which the property was referenced, or the top-most
timeline within the current hierarchy of timelines. If an
instance of the Flash Player has multiple levels, the main
or root timeline is on the level containing the currently
executing script.

The property _level0 references the main timeline of the
movie loaded into level 0. This property can be referenced
from any level and still reference the same timeline, that
on level 0.

When a SWF file is loaded into the Flash player, it's main
timeline is loaded into level 0. In this movie and this
movie only will _root and _level0 reference the same
timeline. Additional SWF files can be loaded into
additional levels using loadMovie or loadMovieNum.
References of _root in those files then reference the level
in which that SWF referencing _root was loaded. For
example, if a SWF is loaded into level 2, a reference to
_root in that SWF will reference the same timeline that
_level2 references, but will not reference the same
timeline as _level0. A reference to _root will only equal
_level0 in the SWF that was first loaded into the player
(level 0).

If you are working with levels in ActionScript, you should
always use _root to reference the main timeline in your
movies. Using _level0 may incorrectly reference the main
timeline of another SWF, the first movie loaded into the
player.

Note: ActionScript 3 no longer uses the concept of levels.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

user accessibility on your video project is a key factor. Which two features should you choose? : Adobe flash

825


Tell me what are the features involved in updating a language?

897


Give an example that illustrates polymorphism in flash script.

908


How to make synchronous data calls in actionscript?

861


how to embed flash in html? : Adobe flash

835


the value of a variable of timeline scope will persist until? : Adobe flash

855


what is default frame rate of the time line in frame per second? : Adobe flash

934


which of cannot be automatically outputted by the trace action? : Adobe flash

925


which methods is most likely an event handler? : Adobe flash

928


Explain what does the void function and object contain in actionscript?

861


what are the statements best describes an event handler? : Adobe flash

930


what is the key difference between while loops and do while loops? : Adobe flash

925


what is the primary difference between the xml.sendandload method and the xml.load method? : Adobe flash

774


what is not a disadvantage of using the fscommand? : Adobe flash

923


at which point can you start usability testing? : Adobe flash

865