A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Changing frame rate

  1. #1
    Member
    Join Date
    Nov 2001
    Posts
    82

    Changing frame rate

    I know this issue was already discussed many times (setInterval, streaming sound etc), but I bumped into this code in the AS help about changing the frame rate of a document while playing:


    ------------------------------------------------------------------
    document.frameRate
    Availability
    Flash MX 2004.

    Usage
    document.frameRate

    Description
    Property; a float value that specifies the number of frames displayed per second when the SWF file plays; the default is 12. This is the same functionality as setting the frame rate in the Document properties dialog box (Modify > Document).

    Example
    The following example sets the frame rate to 25.5 frames per second:

    fl.getDocumentDOM().frameRate = 25.5;
    ------------------------------------------------------------------


    Anyone can explain how this should work ??

    Thnx.
    Last edited by asafmilo; 08-15-2004 at 06:44 PM.
    --=={asaf}==--

  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    ...This is the same functionality as setting the frame rate in the Document properties dialog box (Modify > Document).

  3. #3
    Member
    Join Date
    Nov 2001
    Posts
    82
    I understood that, but let's say I have a movie that runs in 30 fps, and in the middle of it I want to change it to run in 10 fps, how do I do it?
    I tried to use this script with no success.
    --=={asaf}==--

  4. #4
    Senior Member tu_dor's Avatar
    Join Date
    Jan 2004
    Posts
    209
    Document object
    Availability
    Flash MX 2004.

    Description
    The Document object represents the Stage. That is, only FLA files are considered documents.
    It won't work in swfs
    Last edited by tu_dor; 08-16-2004 at 03:11 AM.

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