Not yet rated

Problem

Playing along the timeline to move between states will result in every frame being called. The content is initialised and then the playhead moves on.

Solution

Use different movieclips is the performance suffers.

Detailed explanation

Do not use gotoAndPlay to skip many frames When using gotoAndPlay remember that each frame in between the current frame and the requested frame will need to be initialized prior to the requested frame being played.

If each frame in between the two frames contains different content it may be more efficient to use different movieclips rather than the timeline.

+
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License. Permissions beyond the scope of this license, pertaining to the examples of code included within this work are available at Adobe.

Report abuse

Related recipes