A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: dragging MC

  1. #1
    Senior Member
    Join Date
    Dec 2000
    Posts
    101
    HI, i'm not a newbie but never tried to drag MC's before.

    I have a button called "drag" inside an MC called console which is inside a MC called music. the actionscript i have placed within the button is:

    on (press) {
    startDrag ("music", true);
    }
    on (release) {
    stopDrag ();
    }

    I thought this should drag the clips "music" and "console", but it isn't dragging anything. Help!!!


  2. #2
    Senior Member
    Join Date
    Jun 2000
    Posts
    1,180
    Hi..
    Take the " " surrounding music away. In other words click on expression in the drag panel.

    Hope this helps.

  3. #3
    Senior Member
    Join Date
    Aug 2000
    Posts
    236
    did you name the actual instance?

  4. #4
    Senior Member
    Join Date
    Aug 2000
    Posts
    236
    you have a problem in the code. get rid of true. also you need to make sure it is named on the stage in the definitions tab. use an invisible button to cover the whole area you want it to be drug around to make sure it dose not get a sticky finger. use this code.

    On (Press)
    Start Drag ("music", lockcenter)
    End On
    On (Release)
    Stop Drag
    End On

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