Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Extensions and Plugins > JSFL - Extending Flash

Reply
 
Thread Tools Rate Thread Display Modes
Old 02-14-2005, 12:53 AM   #1
pcarini
Shameless Audiophile
 
pcarini's Avatar
 
Join Date: Aug 2004
Posts: 130
Default document.frameRate, how do I use it ?

I'm looking to get what frameRate a flash movie is set to at runtime, in the simplest way possible. The document.frameRate property seems like it'd be easy enough to use, but if I trace I only get undefined.

The flash help shows this: (to set it, but I'd imagine I could read it also)
ActionScript Code:
fl.getDocumentDOM().frameRate = 25.5;

My trace looks like this:

ActionScript Code:
trace(_root.document.frameRate); trace(_root.getDocumentDOM().frameRate );

Both return undefined. Any ideas ?

Thanks for any help,
-C
pcarini is offline   Reply With Quote
Old 02-16-2005, 04:03 PM   #2
hangalot
lala
 
hangalot's Avatar
 
Join Date: Feb 2002
Location: on the road
Posts: 2,859
Default

this is for javascripting in the ide, so it won't work in a swf.
__________________
oi poloi
http://www.memorphic.com/news/
hangalot is offline   Reply With Quote
Old 02-16-2005, 07:13 PM   #3
pcarini
Shameless Audiophile
 
pcarini's Avatar
 
Join Date: Aug 2004
Posts: 130
Default

ah, thanks much
pcarini is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:05 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.