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 / amjad hussain ghazi

Ok.. welll here is what the difference is:

Every SWF file runs at some unique level. Let us say we
have two swf files namely parentSWF and childSWF, with
childSWF loaded into parentSWF file.

As said, each swf runs at a unique level, assume that
parentSWF is running at level0 and childSWF is running at
level1. Therefore, if level0 will refer to the main
timeline of parentSWF and level1 will refer to the main
timeline of childSWF.

_root will always refer to the maintimeline of its own swf.
In other words, if we say _root in childSWF, it will point
to the maintimeline of childSWF. Similarly, if we say _root
in parentSWF, it will refer to the maintimeline of
parentSWF.

It is therefore important to note that _root and level0
will only be same if they are being referenced from the swf
file that is running at level0. Similarly, _root and leveln
will be same only in the swf that is running at leveln.

As per the above explanation, if you refer to _root and
level0 in an swf file that is running at leve5, the _root
will point to the maintimeline of this particular swf
(running at level 5) and level0 will point to another swf
that is running at level 0.

Hope that helps :)

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

879


what is not a benefit of using macromedias pre-built ui components? : Adobe flash

838


which is an advantage of selecting a flash player version in publish settings before beginning a project? : Adobe flash

787


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

833


when should one generally use the post method instead of the get method? : Adobe flash

863


you have a textfield selected on stage and would like to separate each letter into its own textfield. Which option under the modify menu allows you to do this? : Adobe flash

851


Tell me what are the functions used with flash media?

773


what does the childnodes property contain? : Adobe flash

801


which two file formats can be imported into a swf file at runtime? : Adobe flash

854


which statement best describes what the #initclip num and #endinitclip commands indicate? : Adobe flash

866


a button instance is named circle_btn. Actionscript is placed on the main timeline so that the button is clicked a movie clip instance named rec_mc s width is changed to 100? : Adobe flash

820


Do you know what does reference means in actionscript?

894


what is the downside of macromedia ui components making extensive use of ingeritance and encapsulation? : Adobe flash

925


Do you know what are the different primitive data types used in actionscript?

794


Write a function for a button.

819