Friday, June 8, 2012

[Action Script] onEnterFrame repeat June,2012

I've a problem with repeating function onEntherFrame.I created a function which move image from left to right, converted to MC. Could you help me cause I'm beginner.

Quote: var i:Number=0;

onEnterFrame = function(){
if(i<100){

++i;
image_mc._x -=4;
}
else if (i>=100&& i<200){
++i;
image_mc._x +=8;
}
else if (i>150){

}
}
onEnterFrame repeat

Related Post



0 comments: