Mailing List
Home
Flash Pro
Extending Flash
Flash Macromedia Developer
Subjects
Firework Effect
setInterval bug identified and fixed
setInterval bug identified and fixed
ScrollPane component doesn 't auto update
Help: MX 2004 How to script a print button to print the entire sli
Event Dispatcher between classes
memory management removeMovieClip /
MX2004 Dataset itemClassName
Order of events per frame
XML to Object help
Textfield prototype question
Flash and QuickTime VR
Reading and displaying RSS feeds in Flash MX
Flash MX 2004 Sucks
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash Interface with 10mb xml file
Web Service Results
Listener Object 's best practice
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
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)