Groups | Blog | Home
all groups > flash actionscript > june 2004 >

flash actionscript : incrementation?


TJMonster51
6/2/2004 10:28:51 PM
Melvin_Draco
6/2/2004 10:42:24 PM
use setInterval....

example:
myFunction = function () {
myMC._x += 10;
if (myMC._x == 500) {
clearInterval(mySI);
}
}
mySI = setInterval(myfunctio,1000); //in miliseconds 1000 = 1s

This function will called in interval of 1 second
Laiverd.COM
6/3/2004 12:37:32 AM
code?

--
----------------------------------------------------------------------------
-----------
RESOURCES
http://groups.google.com/advanced_group_search?hl=en&as_ugroup=*flash
----------------------------------------------------------------------------
-----------
TUTORIALS at
www.laiverd.com
Flash & PHP Emailform
Using textfiles in Flash
----------------------------------------------------------------------------
-----------

Peter Blumenthal
6/3/2004 9:02:04 AM
Sounds like you're using a for loop instead of an enterFrame handler or
setInterval...

--
---------------------------------------
http://www.phageinteractive.com
PhageInteractive Ltd.
remove mm_ to mail
---------------------------------------
'If I come across as a grumpy and twisted old man, it's just because I'm a
grumpy, twisted, old man." - me
---------------------------------------

AddThis Social Bookmark Button