-
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}==--
-
...This is the same functionality as setting the frame rate in the Document properties dialog box (Modify > Document).
-
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.
-
Senior Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|