What is the difference between _root and parent?

Answer Posted / devendran

The super parent for all the movieClip is _root
but using the _parent you can get particular MovieClip's parent.

For example you are having one Movie Called MovieHolder_mc
and MovieHolder2_mc on Stage, and inner1_mc inside the
MovieHolder_mc. Now you can access the MovieHolder in Two Ways


_root.MovieHolder2_mc (Direct access)

to get this from the innerMovie

inner1_mc._parent._parent.MovieHolder2_mc

Is This Answer Correct ?    50 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is flash being discontinued?

464


which text anti-aliasing property setting will result in the smallest swf file size? : Adobe flash

501


How to start a graphic animation at a specific frame?

563


Hi All, I am new in flash so please help me, When I make a website on Flash & when we wright code on buttons in AS2[CODE: on(release) gotoAndStop ()], we found when we click twice on a button the page automatically switch. (means, code do not work properly). Thanks,

1943


What is meant by vector graphic animation? What is the use of pre-loader?

530






How to write a program that shows the usage of data types?

493


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

502


Can you explain what are the changes presented by actionscript?

492


which two sets the x position of the instance my_mc to that of the mouse cursor? : Adobe flash

510


Write a program to create custom list in actionscript?

444


How to write a program to create custom list in actionscript?

462


What does reference means in actionscript?

469


How to add event listeners in mxml components. Name the as3 components?

509


How to create scrolling gallery in portfolio?

507


it seems that most recommendations for using fill flash talk about using -1.3 to -1.7 stops of flash compensation. This seems like very little flash (compared to the ambient exposure). Would not -.5 or -1 stop be better? : Adobe flash

492