This flash ActionScript tutorial teaches you how to create draggable images using adobe flash.
Click and Drag images with your mouse.
1) Choose import which is located in the file menu. Import two images. From the library put both images into two different layers in the scene. Now select an image and go to the modify menu and click on convert to symbol. A pop up box will appear as shown below:
2) Give a name and select movie clip under that. After that, press ok and repeat it for all the images.
3) Now select any one of the images and press F9 or go to window menu and under the Development Panel select Actions as shown below:
4 )Now you have got your actionscript window. Now feed in a small script into the window as shown below.
on (press){
mx.behaviors.DepthControl.bringToFront(this);
}
5) Now assign the script for the other images also. Make sure that the things marked in red in the above image have come, they show that the actionscript is loaded to that image.
6) The things marked in green are events like when it should happen. The things in blue determine what will happen mx.behaviors.DepthControl.bringToFront(this); brings the object towards the front when your mouse is pressed.
7) Now if you press CTRL + ENTER you will get the output given below. You can click and drag and keep both the images anywhere in the scene you like.