[Flashcoders] Duplicating a loaded SWF

2009-04-03 Thread Henry Cooke
hej folks, I'm writing an assetloader class, with the intention of attaching a whole bunch of instances to the stage of a loaded asset. Because I want to attach more than one instance of the loaded SWF, I'm having to duplicate the asset instead of just using addChild, because you can only addChild

Re: [Flashcoders] Duplicating a loaded SWF

2009-04-03 Thread Ian Thomas
Henry, As far as I'm aware, duplication of existing instances of objects is still something sadly lacking in Flash. There are a number of hacks, but none of them seem to work for all cases (I've tried a bunch!). In your case, I have two suggestions; both are a change of approach: i) Use

Re: [Flashcoders] Duplicating a loaded SWF

2009-04-03 Thread Cédric Tabin
Hello, Usually for that kind of problem, I simple load my SWF as binary data and use Loader.loadBytes to retrieve many instances of the content. Maybe tha'ts a solution for you ? Regards, Cedric On Fri, Apr 3, 2009 at 2:35 PM, Ian Thomas i...@eirias.net wrote: Henry, As far as I'm aware,

Re: [Flashcoders] Duplicating a loaded SWF

2009-04-03 Thread Henry Cooke
Thanks chaps, In the end, loadBytes did the trick. Cheers, h. 2009/4/3 Cédric Tabin tabin.ced...@gmail.com Hello, Usually for that kind of problem, I simple load my SWF as binary data and use Loader.loadBytes to retrieve many instances of the content. Maybe tha'ts a solution for you ?