A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Change the FPS with a button?

  1. #1
    Member
    Join Date
    Sep 2002
    Posts
    69

    Change the FPS with a button?

    What action script can I apply to a button to change the FPS to say 30 FPS?

    Thanks.

  2. #2
    Registered User nunomira's Avatar
    Join Date
    May 2002
    Location
    portugal
    Posts
    7,003
    I don't think you can do that exactly, but...
    In mx
    You can do something like using setInterval and updateAfterEvent

    for example, even if the frame rate is 1,
    Code:
    function myFunction(){
     _root.ball._x+=2;
     updateAfterEvent();
    }
    setInterval(myFunction,50);
    will make a movieClip named ball on the stage move faster than the frame rate would

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