Reply
flash frame rate
Old 06-23-2004, 11:16 AM flash frame rate
Junior Talker

Posts: 2
I am writting a script in flash that I need to know the movie frame rate. (i know i can look it up in the properties bar) but i want the script to be portable from one movie to another no matter what the frame rate is set to.

Does anyone know a function that i may use?

Thanks for your help, oh and btw first post... Hello World!
richtom80 is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 06-23-2004, 12:26 PM
Junior Talker

Posts: 2
// create interval object
intervalObj = new Object();
intCount = 0;

// create interval function
intervalObj.interval = function() {
/// if counter < 100 then a second has not yet passed so move the movieclip
if (intCount < 100){
intCount++;
tweenMC._x++;
} else {
// stop the interval function when time expires
clearInterval( intervalID );
}
}
// start interval with ID "intervalID" (i.e. execute above function every 10 milliseconds)
intervalID = setInterval( intervalObj, "interval", 10);

i solved it ^^^^ code above
richtom80 is offline
Reply With Quote
View Public Profile
 
Old 07-12-2004, 06:57 PM
Skilled Talker

Posts: 52
Not sure if this is relavent, but your code evaluates an absolute value (time) where the frame rate on a Flash movie rarely contstant, and rarely what is in the frame rate box. I believe.
__________________
portfolio o' mine: www.attunedesigns.com
fast, quality hosting: Ultrix Hosting
Plans start at $3/month for .5gb + 10gb xfer!
Full money-back guarantee! Another exclamation mark!
ethan is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to flash frame rate
 

Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12514 seconds with 13 queries