peepz,
i want to call a funtion once within a onEnterFrame, butthe problem is that the onEnterFrame needs to go on and execute the function only once…(if its between the desired x positions (see script below))
my code
onClipEvent(enterFrame)
{
if(this._x < -150 && this._x > -1600)
{
//execute once!
fadeIn()
}
else{
//execute once!
fadeOut()
}
this._x = (this._parent.mcBG._x * 1.4)-1950
this._y = (this._parent.mcBG._y * 1.8)-160
}
hope u can help…
thanks already!