Duplicated MC Life?
- Started
- Last post
- 7 Responses
- Atencion
Dear Flash:
I have one MovieClip on Stage wich has many dynamically loaded JPGs into it, arranged on stage in a particular order.At some point, I need to make an exact copy of it, keeping all the dynamic data, content and the loaded images within the new instance.
I´ve tried duplicateMovieClip function will only allow me to duplicate the movieClip, but not it´s dynamic content.
Am I missing something? Is there a simple way to duplicate MovieClip and it´s dynamically generated content?
What I need is to duplicate a status at a certain point of that MovieClip.
Any help would be greatly appreciated, guys.
Thanks!
- unfittoprint0
you can duplicate an mc and the actions within.
but you can't duplicate a loaded movie or, in your case, the loaded movies within.
well...
you can, sort of.
check if your inner jpgs have been all loaded. that way they'll be already stored in your cache.
therefore
if you duplicate the mc, they'll be loaded [almost] instantaneously.
voilá.
- Atencion0
From this, Should I assume it´s not possible...?
From
http://livedocs.macromedia.com/f…"It is simply imperative that we be able to duplicate dynamically loaded images and swfs (that is, external files that are loaded into the source clip via loadMovie() or MovieClipLoader.loadClip() ) without having to reload the image/swf into the new clip. Based on the astounding number of threads on this specific topic, I'd say the need is clear: MM needs to step up and correct this major flaw."
- ********0
what unfit said, test to make sure all images are loaded before duplicating the MC, then run the script to load all the JPGs once it has duplicated.... and because they're cached...
- System-Idle0
store a ref to each loaded image in an array as your script runs. Then at any point you can dup yr movieclip and populate it using the array data.
As the guys said before it will be almost instant as the images will of already been cached.
- unfittoprint0
as I stated before:
if you make a loop/interval to check the loaded status of those jpegs and when their completed loading
you'll be able to duplicate the movie and the loaded jpegs since they're already in cache.
attn: the loading actions should exist already in taregeted MC.
- Atencion0
Ok...But that wouldn´t solve the problem of the exact same duplicate. Would it?
From what I´ve read on the Macromedia site the whole JPG loading process should be re done for the new clip.
And, even though there´s little or no waiting time thanks to the Cache, there´s no way to just duplicate a certain state of that MovieClip with loaded JPGs or swfs.
Am i right?
- Atencion0
Of course, thanks for your replies. This really puzzles me, as it seems something rally simple but I never had to do it before.