edge Animate - limit area move object

Asked

Viewed 31 times

0

I have a Symbol in the edge with "drag" function (mouseover-move with mouse), now I want to limit what is the area, inside my document, where it will be possible to move it.

For now this is the code I have:

function(sym, e)
// insert code to be run when the symbol is created here
    yepnope({nope:['jquery-ui-1.10.4.custom.min.js'], complete: init});

function init(){
    sym.$('car').draggable();
    sym.$('car2').draggable();
}

that would move the symbol ('car').

Now I need help on how to write the code to limit the area where it will be possible to drag the object. Grateful

  • Click edit and post a part of what you have already done, Tip, do not need by text like Hello! someone would help me, ... Graduate from now!

  • Please enter the code you have so we can help in a more concrete way.

  • // Insert code to be run when the Symbol is created here yepnope({Nope:['jquery-ui-1.10.4.custom.min.js'], complete: init}); Function init(){ Sym. $('car'). draggable(); Sym. $('car2'). draggable(); } the idea is to make the objects "car" and "car2" can be moved on the x axis but not on the y axis (up to the Stage limit) grateful

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.