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
what happens if an .swf is loaded into a already occupied level? : Adobe flash
what is the effect on the instances of a symbol if the symbol itself is changed? : Adobe flash
How to add conditional logic for the submit button?
How to make synchronous data calls in actionscript?
What does reference means in actionscript?
How to start a graphic animation at a specific frame?
How to write a program to show the external actionscript?
How to write a program to create custom list in actionscript?
if we set slow sync as you suggest in answers on the many online forums you visit, would not we be opening ourselves up to blurred shots when the shutter speed gets significantly below 1/60? : Adobe flash
Do you know what are the ways in which actionscript's code can be protected?
How to embed flash in html?
what are the steps is not required in order to test or deploy flash remoting? : Adobe flash
which of cannot be automatically outputted by the trace action? : Adobe flash
what should be used in the name of constant? : Adobe flash
you have a video project that would best be served by using full screen mode. This needs to be done from within the browser, since you are not able to use a projector. Which publish settings should you use? : Adobe flash