If img.jpg is on the same server as your swf, you wont have a problem.
Otherwise you would need a crossdomain.xml.
>From the top of my head you could do something like this:
function onLoadComplete(e:Event):void
{
var bitmap:Bitmap = Bitmap(_loader.content);
var clone1:Bitmap = new Bitmap(bitmap.bitmapData);
target1.addChild(clone1);
var clone2:Bitmap = new Bitmap(bitmap.bitmapData);
target2.addChild(clone2);
}
I am not sure if 2 Bitmap instances allow you to use the same bitmap
data. If that is not the case you could just copy the bitmap data.
This would however use more memory, so I would try the above thing
first.
Greetz Erik
On 9/17/08, Fabio Pinatti <[EMAIL PROTECTED]> wrote:
> Hi all!
>
> I'm preloading some swf's and images, and I want use some same loaded
> instances for some movieclips. For example, I load a file img.jpg. and
> on complete of it, I want add the loaded bitmap to 10 movieclips. When
> I addChild, all movieclips are overrided and just the last one has the
> loaded content. With images I can use bitmap data for copying data,
> but and if I load swfs or whatever?
>
> I've googled but didn't find any clear, at least for me. Can you help
> me pls, gurus?
> ,
> Thanks so much
>
> --
> Fábio Pinatti
> :: web.developer
> :::: www.pinatti.com.br
> :::::: 19. 9184.3745 / 3342.1130
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders