this.onEnterFrame = function(){ if(_xmouse > 220 and _xmouse < 530){ ton_clip._x = _xmouse; } }
ton_clip.addEventListener(Event.ENTER_FRAME, BougerTonClip); function BougerTonClip(event:Event):void{ if(mouseX > 220 and mouseX < 530){ ton_clip.x = mouseX; } }
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionbtn.onRollOver = function(){ this.onEnterFrame = function(){ ton_clip._x = _xmouse; } } btn.onRollOut = function(){ delete this.onEnterFrame(); }