Re: [Flashcoders] Trying not to loadMovie multiple times

2006-07-21 Thread Dan Rogers
If you are using loadMovie to load in static JPEGs or still images of  
some kind, you could initially load them into a hidden movieclip on  
stage... then when you're ready to duplicate them, you could use  
BitmapData.draw() to clone them into place.


 If you're loading in animated SWFs, then I think you may be out of  
luck.  I'm not aware of a workaround for duplicating loaded  
movies...  but I would also love to hear one! :)


-Danro


On Jul 21, 2006, at 9:01 AM, Danny Kodicek wrote:

The docs say that I can't use duplicateMovieClip on a movieClip  
brought in
with loadMovie or MovieClipLoader. Is there any other way to avoid  
running
loadMovie multiple times? I know the file will have been cached,  
but I'm
still seeing quite a long delay when loading in several copies (and  
this is

running locally, so it's not a bandwidth issue in any case).

Danny

___
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] Trying not to loadMovie multiple times

2006-07-21 Thread Danny Kodicek

 If you are using loadMovie to load in static JPEGs or still images of
 some kind, you could initially load them into a hidden movieclip on
 stage... then when you're ready to duplicate them, you could use
 BitmapData.draw() to clone them into place.

It's a good idea, but unfortunately I'm loading in text and the Flash movie
needs to be scaleable so I don't want to lose the vector data.

I think I may have found a workround which means I don't need to load in as
many copies as I was doing, so hopefully I should be okay, but I'm still
interested in hearing any alternative solutions.

Danny

___
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] Trying not to loadMovie multiple times

2006-07-21 Thread Tom Lee
Have you considered loading the SWF as binary data through the Loader class?
Supposedly, you can use Loader.loadBytes to load a SWF as a byteArray and
then add it to the display list.  If you keep a copy of the byteArray, you
should theoretically be able to add it to the display list as many times as
you like.  (I've never done this, so I could be way wrong)

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Danny
Kodicek
Sent: Friday, July 21, 2006 12:39 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Trying not to loadMovie multiple times


 If you are using loadMovie to load in static JPEGs or still images of
 some kind, you could initially load them into a hidden movieclip on
 stage... then when you're ready to duplicate them, you could use
 BitmapData.draw() to clone them into place.

It's a good idea, but unfortunately I'm loading in text and the Flash movie
needs to be scaleable so I don't want to lose the vector data.

I think I may have found a workround which means I don't need to load in as
many copies as I was doing, so hopefully I should be okay, but I'm still
interested in hearing any alternative solutions.

Danny

___
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] Trying not to loadMovie multiple times

2006-07-21 Thread Steven Sacks | BLITZ
I may be asking a stupid question, but did you by chance duplicate it
before it was finished loading?
___
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