Flash Tutorial: How To Make A Dragable Object

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
4,469
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Aug 14, 2007

Flash Tutorial on how to make a dragable object

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Top Comments

  • i know how to drag one at time!

    just make an objekt and make it as "MOVIE CLIP"....... NOT button!!!

    then put this in the actions :

    on(press){ this.startDrag();

    }

    on(release, releaseOutside){ this.stopDrag();

    }

  • This code is working:

    on(press){

     this.startDrag();

    }

    on(release){ this.stopDrag();

    }

see all

All Comments (15)

Sign In or Sign Up now to post a comment!
  • Well, you could try and make a new layer and then apply the same code.

  • you left out a very important fact. it wont work unless you click the button and look in the properties panel where it says instance name type Drag with a capital D. then if you want more 2 work on your second button name it Drag2 and change the code in that one from:

    on(press){ startDrag(Drag);

    }

    on(release){ stopDrag();

    } To:

    on(press){ startDrag(Drag2);

    }

    on(release){ stopDrag();

    }

    if it does not work after that check you spelling and proper capitalizations on the D's

  • lol just make them two different symbols

  • It's SO MUCH EASIER to make them on different layers!

  • it dont moves one at time like you said

  • DOEsnt Work AgAin! PLEASE HELP ME IM stuck

  • To make 2 objects drag seperate give them 2 different instance names and change the (Drag) in the code to whateva you called the instance name on the second object...

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more