  | |  | removeMovieClip lacks performance? | removeMovieClip lacks performance?
2004-02-15 - By Jamie Gregory
Back I 'm working on a screenshot preview app. A container movieclip holds all the
screenshots.
The flow is like this:
1. Generate new screenshot container mc = newScreenshotContainer (in depth
0)
2. Inside of "newScreenshotContainer ", I generate a clip to hold my JPG =
newImage
3. I then load my external jpg into "newImage "
4. Inside of "newScreenshotContainer ", I generate 2 textFields to hold 2
different texts
5. I check if "newImage " is done loading the JPG.. and when done
6. I Tween alpha fade "newScreenshotContainer " from 0 to 100
.. then the user selects the next screenshot...
7. I generate a new "newScreenshotContainer " (in depth 1).. etc. (step 1-5)
8. I then fade out the previously created & loaded clip and fades in the
new.
9. When the old screenshot is faded out and the new faded in, I remove the
old screenshot with theClip.removeMovieClip()
10. When loading my third screenshot, I just swap depths, so it swaps
between 0 and 1 depth inside the main screenshot container.
This works fine.... until about 15 screenshots has loaded. Then performance
begins to lack. The fades gets slower and slower.
I searched this list and found a lot about removeMovieClip that takes up
RAM. Is that true?
Anyone found a solution to this problem ?
/Jamie
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ __
F?alle de nye og sjove ikoner med MSN Messenger http://messenger.msn.dk/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Supported by Fig Leaf Software
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Be sure to check the archives and the wiki:
http://chattyfig.figleaf.com/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:104303
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)
|
|
 |