A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: draggable object

  1. #1
    Senior Member
    Join Date
    Oct 2000
    Location
    York, Pennsylvania
    Posts
    380
    in past threads draggable objects have been put off until the movie clips are added... now that 3.0 beta has them, what is the best way to approach this? Has any of the other beta testers tried this yet?

  2. #2
    Senior Member
    Join Date
    Oct 2000
    Location
    York, Pennsylvania
    Posts
    380
    bob -

    what are the chances of adding a gui flag that can make an object draggable?

  3. #3
    Senior Member
    Join Date
    Jul 2000
    Posts
    5,087
    Its actually been in there since 2.8

    to make a shape dragable you add this AS to a symbol:

    On(press)
    {
    this.StartDrag();
    }

    to make it stop dragging on release add this AS:

    On(release)
    {
    this.StopDrag();}

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