PDA

View Full Version : document.frameRate, how do I use it ?


pcarini
02-13-2005, 11:53 PM
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)
fl.getDocumentDOM().frameRate = 25.5;

My trace looks like this:

trace(_root.document.frameRate);
trace(_root.getDocumentDOM().frameRate );

Both return undefined. Any ideas ?

Thanks for any help,
-C

hangalot
02-16-2005, 03:03 PM
this is for javascripting in the ide, so it won't work in a swf.

pcarini
02-16-2005, 06:13 PM
ah, thanks much