PDA

View Full Version : onClipEvent(enterFrame) -doubt


texbala
08-08-2002, 05:21 PM
Hi,

I was trying a small program in which I attached the following code to the 'mc'

=======================
onClipEvent(load){
x1=10;
}

onClipEvent(enterFrame){
_x+=x1;
}

=====================

and I gave a 'stop' action inside the MC (say in frame 2).

My question is: since enterFrame action executes eachtime the mc moves in the frame, should the mc, stop after moving some distance (in this case, should it not stop in frame 2??)

(Or did i understand the concept wrong??)

thnx for the help!!

bala

tg
08-08-2002, 07:09 PM
enterFrame looks at frames per second and then executes that many times per second, whether or not you have a stop() action on the first frame of your timeline or any frame of your timeline.