-
Drag only in horizontal direction
Hi everyone,
I have had the following problem for a while and i cant find any solution on google.
I have the following and what i want to do is only allow the object current_switch_selector to be dragged in a horizontal direction but when i use the following for example it doesnt work
var bounds_rect:Rectangle = new Rectangle(0, 0, 17, 10);
trace(bounds_rect);
current_switch_selector.startDrag(bounds_rect);
Also the mouse doesnt stay over the object
Anyone have any ideas on how to accomplish this?
-
var bounds_rect:Rectangle = new Rectangle(0, 0, 17, 0);
current_switch_selector.startDrag(true, bounds_rect);
-
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|