Skip to main content
Inspiring
June 4, 2013
Question

I need to change stage.frameRate, but how to keep tween speed?

  • June 4, 2013
  • 2 replies
  • 1812 views

Hello. I am using Flash CS6.

Right now I am trying to keep fps of tween motion.

I mean, I made a button that  speeds up and down stage.frameRate, if I click the button it does stage.frameRate +=1 or stage.frameRate -=1, but if stage framerate changes, it speeds up the tween animation too.Is there anyway to keep the speed of tween animation?

What I want to do is there are 2 movie clips, mcA and mcB, and mcA animation is dependent on stage.frameRate, if I click the forementioned button to change stage framerate, it also changes mcA framerate, but I don't want to change mcB framerate.There is a tween AS, it moves "mcB.x = 0" to "mcB.x = 100" in 10 frames with tween.I want to keep the pace of the tween animation.

Please give me your advice.

This topic has been closed for replies.

2 replies

Inspiring
June 4, 2013

I forgot to tell. I want to use something like Tween.FPS in AS2.

http://help.adobe.com/ja_JP/AS2LCR/Flash_10.0/help.html?content=00003004.html

Ned Murphy
Legend
June 4, 2013

Use Actionscript to tween positions instead of using the timeline. Then you can base it on time rarther than frames.  For starters, look into using the built-in Tween class.  Once you get a flavor for using it, for better performance you can look into using third party tweening such as TweenLite.

Inspiring
June 4, 2013

I got it. I will tweak Tween AS setting. Thank you.