IT WORKS ACTIONSCRIPT 3 (Semilla Sol Apps)
1- create regular MOUSE DOWN and MOUSE UP event listeners
2- discard your startDrag and stopDrag "elements in each of the functions, respectively
HERE HOW TO CLOSE THE DRYING:
1: create an event listener for the object you want to restrict ... in this example, this is a movieclip instance named " player ":
player.addEventListener(Event.ENTER_FRAME, pLimiter);
HERE 'pLimter' FUNCTION:
function pLimiter(e:Event):void { player.y = stage.stageHeight; }
So, in this case, we restrict the โdrag and dropโ only to the x axis.
- party at the dude! (Semilla Sol Apps)
source share