Okay, weirder and weirder:

On my local machine loading from a local file, loading .swf v6 gives
instanceof MovieClip=false and v7 and v8 give instanceof
MovieClip=true.

On a remote machine loading from that same remote machine, loading
.swf v6 gives instanceof MovieClip=false and v7 and v8 give instanceof
MovieClip=true.

On my local machine loading from a remote machine, all versions give
instanceof MovieClip=false.

On a remote machine loading from a different remote machine, all
versions give instanceof MovieClip=false.

My initial thought is it must be a cross-domain scripting issue - i.e.
the app wouldn't let you check the instanceof because of a domain
scripting policy (see
http://www.adobe.com/devnet/flash/articles/fplayer_security_04.html).

But I've tested it with System.security.allowDomain() and checked
scripting between the two movies, and even when cross-domain scripting
works perfectly (no sandbox violations) the instanceof still returns
false. (I'm not 100% sure whether I've got the System.security
settings right - but I can read vars in the loaded movies and vice
versa, so that sounds pretty correct to me.)

I still think that's the most likely candidate - that it's _something_
to do with the sandbox/security system getting in the way. After all,
a common feature is that v6 .swfs fail all the time - and we already
know that a v6 movie can never share a global object with a v7 or v8
movie.

I'm certainly running out of ideas for a simple fix, here - and it's
definitely not the loading code, it's a 'feature' or bug in the Flash
Player.

Hope some of this helps!

Cheers,
 Ian

On 8/23/06, John Grden <[EMAIL PROTECTED]> wrote:
cool, thanks Ian, I'll try the same tests with published swf's

Really appreciate your help!

_______________________________________________
[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