A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: dragging

  1. #1
    Member
    Join Date
    Mar 2001
    Posts
    55

    Wink

    Hey ! can anyone help me with this dragging problem?
    i wnat only one object to drag
    and when i insert the action to that object and preview it, the dragging would work fine, however if i creat another object with no action IN A DIFFERENT LAYER, and then preview it, then when i click on the object with the action, both objects would start to drag, when i only want one object to drag.
    and i tried converting the object with no action into a movie clip and it still doesnt work.
    i am thinking of deleting this because i cant get it right!!!!!
    please any advice would be good thank you
    :O:O:O:O:O:O::O:O:O:O:O:O::O:O:O:O:O:O:O:O

  2. #2
    Senior Member
    Join Date
    Feb 2001
    Posts
    119
    The object you want to drag has to be a movieclip with an instance name. Assign this action to a button:
    on (press) {
    startDrag ("_root.myMC", true);
    }
    on (release) {
    stopDrag ();
    }
    myMC is the instance name I have given my MC. If you want to drag the item you click just put the button inside the MC
    Hope this helps

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center