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?