DRAG N DROP APPLICATION

1. Open a file
2. Draw a tree by using pen/line tool
3. Name the layer as tree
4. Color the tree
5. Select the tree -->right click-->convert to symbol-->movie clip-->name it as tree
6. Insert a new layer-->name as fruit-->Draw a fruit by using shape tool-->color it
7. Select the fruit -->right click-->convert to symbol-->movie clip-->named it as fruit
8. Right click at tree shape-->chose action
9. Type action script code :

on (press) {

startDrag(this,true)

}

on(release){

stopDrag();

}

10. Close action window
11. Do step 8 for the fruit
12.Repeat step 6-7 to create another 4-5 fruits.
13. Repeat step 11 to insert action script to all fruits
14. ctrl+enter to test the movie
15. Save the file
click on the image to see the exercise

0 comments:

Post a Comment

About