dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Frame rate

  1. #1
    Antichrist
    Join Date
    Jun 2005
    Location
    A bin
    Posts
    8

    Frame rate

    I was wondering if there is an AS code in Flash 5 which allows you to change the movie's framerate during play? as I am trying to make an intro movie ppl can use in their movies, but what if they choose a different frame rate to the intro?

    Please help, I will greatly appreciate the thought!

    Ry4n

  2. #2
    Can't Re-Member madzigian's Avatar
    Join Date
    Apr 2004
    Location
    Boston MA
    Posts
    2,662
    if what you are making is a fle that will be loaded into another swf file.. the one beiong loaded takes on the frame rate of the movie it's being loaded into. So if the main movie has a frame rate of 30 fps, and the external has a rate of 12fps... when the external is loaded into the main movie, they will both run at 30fps..
    Please DO NOT PM me simply for individual help. Post in the public forums...that's what they are for, and they allow others to benefit as well. - Thx
    OS X 10.3.9 || Flash MX04 Pro
    | del.icio.us || furl || Helpful Source Files || Free Pixel Fonts |

  3. #3
    Senior Member Dricciotti's Avatar
    Join Date
    Aug 2002
    Posts
    2,988
    You can trick flash into using a different frame rate by using setInterval(). Example (code will change the frame every 1000 milliseconds):
    code:
    setInterval(movieControl, 1000);
    stop();
    function movieControl()
    {

    _root.gotoAndStop(_root._currentframe+1);
    }


  4. #4
    Junior Member
    Join Date
    Jun 2004
    Posts
    13
    This worked for me thanks buddy... GOD BLESS YOU, you don't know how much you help me.

    I actually change the gotoAndStop for a gotoAndPlay and everything is work just fine.

    Thanks again

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