flash help!!
flash help!!
- Started
- Last post
- 3 Responses
- imakedesign
anyone know of a good way to scale and position mc`s with a ease effect without using the onEnterFrame Handler??
- spmitch0
maybe
setInterval();
- Anarchitect0
setInterval as posted before.
always use 2 functions:
#1 the function to be looped
#2 a trigger function
ie:
//#1
loop = function(obj, alpha){
obj._alpha += (alpha-obj._alpha)/4
if(Math.abs(alpha-obj._alpha)
- Anarchitect0
rewind
ie:
//#1
loop = function(obj, alpha){
obj._alpha += (alpha-obj._alpha)/4
if(Math.abs(alpha-ob j._alpha) < 1 ){
clearInterval(loopint)
obj._alpha = alpha
}
}//#2
fade = function(obj, alpha){
clearinterval(loopint)
loopint = setInterval(this, "loop", 30, obj, alpha);
}//usage - fade to 0
fade(myMC,0);