Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Graphics Forum


You are currently viewing our Graphics Forum as a guest. Please register to participate.
Login



Reply
Old 06-23-2004, 12:16 PM flash frame rate
Junior Talker

Posts: 2
Trades: 0
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
 
 
Register now for full access!
Old 06-23-2004, 01:26 PM
Junior Talker

Posts: 2
Trades: 0
// 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, 07:57 PM
Skilled Talker

Posts: 52
Trades: 0
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:
Please login or register to view this content. Registration is FREE

fast, quality hosting:
Please login or register to view this content. Registration is FREE

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 Search this Thread
Search this Thread:

Advanced Search

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 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.44481 seconds with 12 queries