All you need to do is make A.swf a shared library by having one & only one
movieclip in its library exported for sharing. In B.swf you import for
runtime sharing the same movieclip and make sure it is on the stage
somewhere. This forces all movieclips in A.swf to be available to
attachMovie in B.swf.

The big thing you have to do is make sure that A.swf is fully loaded before
trying to access anything in it. Use MovieClipLoader to make sure.

Here is an example of doing it with a font.

http://www.codesortium.com/demo/sharedlibrary/example.zip

Hope this helps.

Jim

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ben Smeets
Sent: 10 April 2006 21:08
To: Flashcoders mailing list
Subject: [Flashcoders] External swf / attachMovie

Hi all,

I know this question is coming along every now and then, but the
solution still couldn't be found by myself. Quick introduction:

I want to be able to have A.swf, with a lot of simple mc's to be loaded
into B.swf. In A.swf I would set all kinds of linkageIDs to my shapes,
which I would like to use in B.swf with attachMovie. This simple task
seems to be a major issue :) Only thing I could find about it was a
bunch of "can't be done" google hits and a might-be workaround in the
archives at
http://chattyfig.figleaf.com/mailman/htdig/flashcoders/2003-December/098
173.html.

I was wondering if someobody in the meantime has found a better solution
for this problem? Like just being able to load an external swf, and call
attachMovie in your main swf to linked library items in that loaded swf.
Without restrictions... Anybody? :)

Cheers,

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

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