I have a problem with my drageable object when the users drag the object outside the limit of the Flash stage in a HTML page. It seem like it lose it’s _.x and ._y coordonates. It will followed the cursor when it returns to the stage but it can be drop anywhere on the stage after that.
Anybody have a solution to how I could detect when the piece is going outside the stage and make it return to its original place?
EDIT : It’s weird, if I set the first parameter to true, when I click on my MC, there’s an offset with my cursor. Is there a way to get rid of that mouse/MC offset? If I use false, everything work fine except if I drop my MC on another MC. The cursor still have the focus on the MC and moving it, it can be dropped anywhere. :S
Why does my MC still get outside the stage but only from the left position? The others border works fine but the left positioning is not working when I put 0 for value.
If my Flash movie is 750x270 and I want a 10 px margin from everyside, what are the value parameter, I should use? It seem like wider MC still goes outside. Does it have anything to do with the rotating point (center) of my MC? All my MC are not the same size.