Search code examples
flashadobeflash-cs4

Increasing number of image per second with flash?


I'm beginner in Flash CS4 and I'd like to know how to increase the number of image per second of my sequence because I want more smooth morphing. The time will not change. Actually, I have 24 image per second and I'd like to put 48. Is there a way to make it automatically without changing all by hand.

for automatically : I mean, I just have to change my number of frame somewhere and flash will adjust my sequence and will use now 48 frame for 1s instead of 24 frame for 1s and regenerate morphing I use.

Thanks


Solution

  • What do you mean, 'automatically'?

    There is a property in AS3 called Stage.frameRate, you may change this as desired in the code.

    You can also change it under timeline of your app: alt text http://img42.imageshack.us/img42/8052/fpsr.png

    It will, however, affect the length of your movie in seconds, so you'd rather count it by this formula:

    MovieTime = NumberOfFrames / FPS
    

    or:

    NumberOfFrames = MovieTime * FPS
    

    So you will have to change amount of frames by hand, if you wish to keep movie time consistent.