flash as2 question
- Started
- Last post
- 3 Responses
- CygnusZero4
Say the fps of my Flash movie in the properties is set to 30fps, is it possible to change the framerate within individual movie clips, but keep the main movie fps at 30?
- albums0
Frame rate considerations
In most cases, a loaded movie inherits the parent movie's frame rate. For example, a SWF file whose frame rate is 12 fps plays back at 24 fps when loaded into a movie whose frame rate is 24 fps. The only exception is if the movie being loaded contains a sound on the timeline whose sync is set to "stream". Only then does the main movie then inherit the frame rate of the loaded movie to assure the correct playback of that sound.
Note: ActionScript 3.0 allows you to change the frame rate dynamically using the Stage.frameRate property.
- angrybear0
no.
AS3 will let you change framerate dynamically, but of the entire swf, not individual assets.
you're going to need to go in and add/remove frames most likely to adjust speed.
- uan0
yes. with tricks actually:
"prior to AS3 you can also change the frame rate of the player by loading in a movie that has a streamed sound in it. The frame rate of that movie will then be used for your main movie (this has worked since at least Flash 5 if I remember right)"or you can control the framerate manually with updateAfterEvent.