A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: Frame Rate?

Hybrid View

  1. #1
    Junior Member
    Join Date
    May 2007
    Posts
    23

    Question Frame Rate?

    I'm working on my Flash website. My document is setup at 12fps but I have a movie clip object within the document that I'd like to play at 20fps. This movie clip is a layered photoshop file that I imported as keyframes (it's basically a page curl effect composed of 5 frames) Is that possible? Thanks.

  2. #2
    Senior Member
    Join Date
    Jun 2008
    Posts
    549
    Can you change the document setup to 20fps?

    And are you using AS2 or AS3?

  3. #3
    Junior Member
    Join Date
    May 2007
    Posts
    23
    Thanks for the reply. I'm using AS2. I already have other animations setup that I don't want to affect.

  4. #4
    Senior Member
    Join Date
    Jun 2008
    Posts
    549
    In Actionscript 2 you can't change the frame rate at runtime because there are no methods to do so. You can try using either the setInterval method or tweens to gives the effect of increase speed.

  5. #5
    Junior Member
    Join Date
    May 2007
    Posts
    23
    Thanks, I'll give it a try.. but if I just change it to AS3 could it mess up anything that I've already done? Will it work if someone has an earlier version of flash?

  6. #6
    Senior Member
    Join Date
    Jun 2008
    Posts
    549
    There is method to change the frame rate in AS3 checkout this article http://www.ilike2flash.com/2009/09/c...nscript-3.html

  7. #7
    Junior Member
    Join Date
    May 2007
    Posts
    23
    thanks!

  8. #8
    Didn't try it, but would this work?

    movieclip.frameRate = 20

    Not sure.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center