[thelist] [Flash] ::: External .swf ::: Access to "parent" object model

Chris Marsh chris at webbtech.co.uk
Thu Nov 14 09:39:01 CST 2002


Thank you all for your assistance. Geoff: you were correct, it was my
misunderstanding of the term "root" in this context.

> Your source of confusion is in the use of the term _root
> _root is a relative term and means the parent level. EG:
> If called from a movie clip on _level0, _root means _level0
> If called from a movie clip on _level23658, _root means the same as
> _level 23658
>
> Unless you need to access the parent level from a clip which doesn't
> know in advance what level it will be on, (and in this case you
> don't) my advice is to ignore _root and use _level0 instead.
> The first .swf file loaded by the HTML page is always at _level0 by
> default. If you load a new movie onto _level1 and then wish to affect
> a movie on the original timeline, the path is _level0.

I have things working fine now, but have a further question. The reason
I am using external .swf files is to a)bring down the initial download
time, and b)allow easy insertion of another section. Do I have to
explicitly unload an external .swf to free up the memory used, or does
Flash clean up after itself?

Regards

Chris Marsh





More information about the thelist mailing list