Yes, a SWF8 loaded into a SWF9 does play. However, there are quite a 
number of limitations.

For instance, you can't reference _level0, or any _level. Tracing out 
trace(this) in the SWF8 displays "_root". So each SWF8 assumes it is 
_root. But they are not loaded into different _levels. In fact you can't 
even use loadMovieNum to load another SWF8 into your SWF8. You can use 
loadMovie, but the ability to reference _levels has been removed. It's 
like _lockroot on steroids.

I was able to determine that each SWF8 is loaded as 
_level0.instanceN.instanceN+1, where N is a number. You can find this by 
placing code on a movieclip in the main timeline of your SWF8 and tracing 
_parent - not this._parent, just _parent. The result was 
_level0.instance1. I was then able to display the contents of 
_parent._parent, which is _level0 - not much there:

lconid:527c
historyUrl:history.htm?
$version:WIN 9,0,15,0
instance3:_level0.instance3
instance1:_level0.instance1

instance1 and instance3 are containers that hold SWF8s that are loaded. 
The SWF8s are _level0.instance1.instance2 and _level0.instance3.instance4.

But, all SWF8s that are loaded into a SWF9 share _global. You can't 
directly communicate with the SWF9 but you can communicate with other 
SWF8s.

So what? Well, it means your loaded SWF8s may be able to be used, but 
depending on how you reference things, they may not work as expected. 
However, they will run.


Derek Vadneau

----- Original Message ----- 
From: "Johannes Nel" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" <[email protected]>
Sent: Friday, July 07, 2006 8:45 AM
Subject: SPAM-LOW: Re: [Flashcoders] AS3 faster ??


the code does not execute if the parent movie is aimed at avm2.

On 7/7/06, Meinte van't Kruis <[EMAIL PROTECTED]> wrote:
>
> wonder what happens if you load a SWF published with as2.0
> into a SWF publishes in as3.0, does it have to switch VMs?


_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to