Log in

View Full Version : onEnterFrame Help



shas1280
12-20-2010, 02:03 PM
how to recall a onEnterframe action
My movie clip moving to left onEnterFrame and i created a button to stop on onRollOver with "delet this.onEnterFrame" function but i need the movie clip scroll again on onRollOut. can anybody help me .

my_clip.onEnterFrame = function() {

this._x+= -2;

btn.onRollOver = function() {
delete my_clip.onEnterFrame;
}

btn.onRollOut = function() {
what i need to code here
}
}

ggalan
02-15-2011, 04:31 AM
if you want it to start again wouldnt you do


btn.onRollOut = function() {
my_clip.onEnterFrame = function() {
this._x+= -2;
}
}