Her

Home Flash & Swish Flash Tutorials Dragging Effect

Dragging Effect

Author: Mark Author's URL: www.pixeldigest.com More by this author

Step1:

Create a new Flash Document with the dimension 550 as the width and 400 pixels as the height, set the background color to white.

Click on the Oval Tool image 1 and create a small oval shape. Something like the image below.

image 2

Click on the Selection Tool image 3 right click on the circle and convert to symbol Button. Press Ctrl+F3 this will bring up the properties window shown below. Change the Instance Name to Drag, this is important.

image 4

Step2:

Click on the circle and press F9, this will bring up the Action window. Enter the script below in the Action window

startDrag(Drag); } on (release) { stopDrag(); }

Below is a screenshot of how the Script looks in the Action window.

Dragging Effect

That is it, test your movie and it should work. Hope it came out to what you expected.

Click on the ball and drag it.