RE: [Flashcoders] loading external movie, then attachMovie items of IT's library?
Yes it is, the trick as it were is to make a blank Stub movie clip in the child swf make available for runtime sharing, then in the main swf import from shared library the stub movieclip force its inclusion in the publish either by dragging onto stage or placing in a movieclip that is published for runtime sharing. This stub mc will force the loading of ALL the library assets from the child movie. The only thing is you must make sure that the whole child swf is loaded into memory before using its library. Hth Jim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of grimmwerks Sent: 04 November 2006 19:34 To: Flashcoders mailing list Subject: [Flashcoders] loading external movie,then attachMovie items of IT's library? Is it possible to load in an external swf using loadMovie into a main movie, and then creating new movies on the fly using attachMovie with ids of the loaded movie? ___ Flashcoders@chattyfig.figleaf.com 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 ___ Flashcoders@chattyfig.figleaf.com 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
[Flashcoders] loading external movie, then attachMovie items of IT's library?
Is it possible to load in an external swf using loadMovie into a main movie, and then creating new movies on the fly using attachMovie with ids of the loaded movie? ___ Flashcoders@chattyfig.figleaf.com 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
Re: [Flashcoders] loading external movie, then attachMovie items of IT's library?
in Flash 9 with actionscript 3, yes. but with flash 8 I doubt that, anybody ? On 11/4/06, grimmwerks [EMAIL PROTECTED] wrote: Is it possible to load in an external swf using loadMovie into a main movie, and then creating new movies on the fly using attachMovie with ids of the loaded movie? ___ Flashcoders@chattyfig.figleaf.com 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 ___ Flashcoders@chattyfig.figleaf.com 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
Re: Re: [Flashcoders] loading external movie, then attachMovie items of IT's library?
Not so much with loadMovie, I don't think. However if you use swfmill to inject the swf at compile time you can then use attachMovie on it and any subsequent clips within it. The above assumes you're using eclipse with MTASC and swfmill :-| If you're not head on over to osflash.org. Jolyon On 11/4/06, Yehia Shouman [EMAIL PROTECTED] wrote: in Flash 9 with actionscript 3, yes. but with flash 8 I doubt that, anybody ? On 11/4/06, grimmwerks [EMAIL PROTECTED] wrote: Is it possible to load in an external swf using loadMovie into a main movie, and then creating new movies on the fly using attachMovie with ids of the loaded movie? ___ Flashcoders@chattyfig.figleaf.com 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 ___ Flashcoders@chattyfig.figleaf.com 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 ___ Flashcoders@chattyfig.figleaf.com 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
Re: [Flashcoders] loading external movie, then attachMovie items of IT's library?
You could not treat the entire loaded SWF as a library asset to be instantiated via attachMovie, but you could do one of two things: 1. You could use duplicateMovieClip. This has the virtue of cloning the entire root timeline of the loaded swf, but you are limited in your instantiating parent. this.load_mc.loadMovie(myMovie.swf); this.load_mc.duplicateMovieClip(clone_mc, clipDepth); trace(this.clone_mc); In this example, 'load_mc' and 'clone_mc' are identical, with the same parent. 2. Create a library clip inside myMovie, with a linkage id (say myLinkage). Instantiate the clip on your myApp.swf timeline (say as myRoot_mc), and use this clip as your 'main application clip' (very important). Then use: this.load_mc.loadMovie(myMovie.swf); trace(this.load_mc.myRoot_mc); this.whatever_mc.somechild_mc.attachMovie(myLinkage, clone_mc, clipDepth) trace(this.whatever_mc.somechild_mc.loadchild_mc); In this example, this.load_mc.myRoot_mc and this.whatever_mc.somechild_mc.clone_mc are identical, but with different parents. If you don't want to instantiate the library object at compiletime, don't put the the library clip on the main timeline of myMovie.swf, and check 'export in first frame'. You would still have the library item linked as myLinkage available to your main application. Hope that helps, __ Joseph Balderson, Flash Platform Developer http://www.joeflash.ca | 416-768-0987 Writing partner, Community MX | http://www.communitymx.com Consultant, New Toronto Group | http://www.newyyz.com grimmwerks wrote: Is it possible to load in an external swf using loadMovie into a main movie, and then creating new movies on the fly using attachMovie with ids of the loaded movie? ___ Flashcoders@chattyfig.figleaf.com 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 ___ Flashcoders@chattyfig.figleaf.com 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
Re: [Flashcoders] loading external movie, then attachMovie items of IT's library?
You could not treat the entire loaded SWF as a library asset to be instantiated via attachMovie, but you could do one of two things: 1. You could use duplicateMovieClip. This has the virtue of cloning the entire root timeline of the loaded swf, but you are limited in your instantiating parent. this.load_mc.loadMovie(myMovie.swf); this.load_mc.duplicateMovieClip(clone_mc, clipDepth); trace(this.clone_mc); In this example, 'load_mc' and 'clone_mc' are identical, with the same parent. 2. Create a library clip inside myMovie, with a linkage id (say myLinkage). Instantiate the clip on your myMovie.swf timeline (say as myRoot_mc), and use this clip as 'root timeline' of myMovie.swf instead (very important). Then use: this.load_mc.loadMovie(myMovie.swf); trace(this.load_mc.myRoot_mc); this.whatever_mc.somechild_mc.attachMovie(myLinkage, clone_mc, clipDepth) trace(this.whatever_mc.somechild_mc.loadchild_mc); In this example, this.load_mc.myRoot_mc and this.whatever_mc.somechild_mc.clone_mc are identical, but with different parents. If you don't want to instantiate the library object at compiletime, don't put the the library clip on the main timeline of myMovie.swf, and check 'export in first frame'. You would still have the library item linked as myLinkage available to your main application. Hope that helps, __ Joseph Balderson, Flash Platform Developer http://www.joeflash.ca | 416-768-0987 Writing partner, Community MX | http://www.communitymx.com Consultant, New Toronto Group | http://www.newyyz.com grimmwerks wrote: Is it possible to load in an external swf using loadMovie into a main movie, and then creating new movies on the fly using attachMovie with ids of the loaded movie? ___ Flashcoders@chattyfig.figleaf.com 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 ___ Flashcoders@chattyfig.figleaf.com 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