Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

Explorer ,
Jun 04, 2013 Jun 04, 2013

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.

TOPICS
ActionScript
1.8K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 04, 2013 Jun 04, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 04, 2013 Jun 04, 2013
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 04, 2013 Jun 04, 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines