Drag « Operations « Flash Tutorials

Home
Flash Tutorials
1.Actionscript Programming
2.Animals
3.Animation
4.Colors
5.Design
6.Effects
7.Game Cartoon
8.Humans
9.Models
10.Nature
11.Operations
12.Shapes
Photoshop Tutorials
Maya Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
Flash Tutorials » Operations » Drag 

That's the basics of ActionScript 3 dragging. As you see, the dragging effect looks quite boring. Why not add some animation to it?

12 Free Online Quiz Creators for Teaching Online Last post by: Sunnyme Date: 01.10.2009 06:26:27

1. Create a new document of size 400×400.

Makes the target movie clip draggable while the movie plays. Only one movie clip can be dragged at a time. After a startDrag() operation is executed, the movie clip remains draggable until it is explicitly stopped by stopDrag() or until a startDrag() action for another movie clip is called.

12 Free Online Quiz Creators for Teaching Online Last post by: Sunnyme Date: 01.10.2009 06:26:27

For example, you might want to create a slider or a scrollbar for a web application - these things can easily be made using startDrag(). Apart from that it can be used in games which actually isn't a novelty since I can remember quite vividly that I saw games employing drag and drop many many years ago (for example a game called "Glasses" where you could drag a pair of glasses that could see through... well, I guess I shouldn't write what;)).

circle_mc.onRelease = function(){ this.stopDrag() }

Create a "Dynamic Text" field and call the var "answer1". This is where you will get the feedback whether the choice is right or wrong.

Click here to download all files for this tutorial http://www.webdesignermag.co.uk/?page_id=83

w__w___w___.__j___ava2___s__._com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.