Home | Help Forums | Web Design Tutorials | Free Swishmax Downloads | All Downloads

 

 

Company

Home

Nework Details

Tutorials

SWiSH 2

SWiSHMax

Flash MX

PHP & MySQL

HTML / JScript

Adobe Photoshop

Corel Draw

Gimp

Miscellaneous

Downloads

Templates

Plugins

Fonts

Wallpapers

Free Images

Scripts and Codes

Products

E-Books

SWiSH BB

SWiSH Templates

SWiSH-DB Newsletter
Subscribe to our newsletter : GO
  Partners / Affiliates

   Swish Templates
   SWiSH Climax
   GimpTalk
   Idea Designs
   Sposatoettore
   Try Acai Berry Diet
   Download Free Ringtones
   Swishzone

Manage your site with Flax Article Content Management System
Dragging Objects Tutorial
Category : Flash | Level : Beginner | Language : English
Ask Question | Read Comments | Post tutorial | Previous | Next

Web www.swish-db.com

Ok, I decided since alot of people use this nowadays, I would give a little tutorial on how to do this.


1. Convert your object that you want to be draggable to a symbol (F8 or right click on the object itself and find convert to symbol) make sure the symbol you make is a movie clip, not a button or graphic.
2. Now that you have your symbol, click on it and go to the properties panel(If you don't have it up, go to Windows then click on Properties or just push CTRL+F3) On the left top side of the box, you will see a drop-down menu that should have movie clip in it. Go right under than and click on the box with instance name in it. Name your object a name that is appropriate for this action.(I'll name mine menudrag)
3. Now,(Still being clicked on your object) Open your actions panel(Windows Actions or F9)
Copy and Paste this actionscript in your actions panel for your frame.


on (press) {
startDrag(menudrag);
}
on (release) {
stopDrag();
}



Explanation of the actionscript:
on (press) { //Means when a user presses their mouse down, this action occurs
startDrag(menudrag); // This is to start your drag for your drag and drop(the menudrag is the name I had you put in the instance box earlier, you need to replace this if you named your differently)
}
on (release) {
stopDrag();
}
///This Just ends the dragging when the mouse is let go.

Thanks, Hope I explained well.


All rights reserved - swish-db.com