Stathis,

Create a class that deals with the loading of images. Once that image has
been loaded you can create a bitmapdata of that image and then distribute it
as many times as you want. I have used this method several times and have
built classes to deal with it.

If you need some class files then email me offlist and I can send them
through.

They are built in flex but can easily be converted to flash as3 if need be. 

This technique also does not load the images twice as it detects if that
image has already been loaded or not.

Cheers

Michael

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kaloudis
Stathis
Sent: 29 February 2008 12:45
To: Flash Coders List
Subject: RE: [Flashcoders] duplicate loaded image + convert object to image

I hadn't thought using BitmapData, I 'll give it a try.
As for loading images twice, if this is the only way then I'll have to
walk it!

Many thanks Ian!

 
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ian
Thomas
Sent: Friday, February 29, 2008 1:23 PM
To: Flash Coders List
Subject: Re: [Flashcoders] duplicate loaded image + convert object to
image

Stathis,
   No, in AS2 you can't duplicate loaded content using
duplicateMovieClip. Your choices are:
 - to load each image again, every time you need it (isn't as slow/bad
as it sounds - the cache speeds it up dramatically)
 - to duplicate the image by storing/copying loaded images's
BitmapData - this is your best bet, if you're using Flash Player 8+

Hope that helps,
   Ian

On Fri, Feb 29, 2008 at 11:06 AM, Kaloudis Stathis
<[EMAIL PROTECTED]> wrote:
> Hi all,
>
>  I'm trying to figure out how to duplicate a clip with an externally
>  loaded image in it.
>
>  Function duplicateMovieClip does not work for movieclips
>  with content loaded using MovieClip.loadMovie() or the
MovieClipLoader
>  and I'm stucked and confused on how to proceed.
>
>
>  Also, is it possible to create a multi-dimentional array with loaded
>  images (inside movieclips) in it
>  and then retrieve these images?
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to