Вы находитесь на странице: 1из 4

Introduction to Adobe Flash ver.CS3 Action scripting 2.0.

In this post, I take an opportunity to give you an introduction to Adobe Flash ver. CS3
Action Scripting 2.0. I assume that you have an exposure to Adobe Flash CS3 or any
recent versions.

Following are the steps to create a simple photo slide show with Action Scripting 2.0:

1. Open new flash document and set width 400 pixel width and 300 pixel height
2. Import the images for slide show into Library

Flash CS3 Action Scripting environment showing Scene

3. Press F6 to activate second frame.


4. Drag and drop image (pic1) from Library
5. Set image size to 350 pixels width and 250 pixels height
6. Align the pic1 to center by using align window (Ctrl+K)
Inserting and aligning image into second frame

7. Select the image and click F8 to Convert the image to movie clip
8. Give name to movie clip (in this ‘movieclip1’)
9. Click OK

Converting image to movie clip

10. Give instance name in Properties window (in this ‘slideshow’)


11. Double click on image to go inside Movie Clip window

12. Click F6 to select second frame


13. Insert second image (pic2) from Library onto Stage
14. Set image size to 350 pixel width and 250 pixel height
15. Align image to center
16. Repeat the steps from 12 to 15 for next two images (pic3 and pic4)
Image showing four image slides

Tip: You can alternatively select Modify  Swap Bitmap  Swap Bitmap to drag and
drop images from Library onto Stage

17. Click Scene1 on Movie Clip window to back to Scene1 window


18. Press F6 on 30 th and 60 th frame on Scene1 window

19. Select 2 nd frame


20. Click image on stage
21. Select Alpha from Color list box in Properties window
22. Set the Alpha amount to 0% in Alpha Amount List box
23. Select 30 th frame
24. Click image on stage
25. Set Alpha amount to 100% in Alpha Amount list box
26. Select 60 th frame
27. Click image on stage
28. Set Alpha amount to 0% in Alpha Amount list box

29. Right click on Time Line in-between 1 st and 30 th frame

30. Click Crate Motion Tween


31. Right click on Time Line in-between 30 st and 60 th frame
32. Click Crate Motion Tween
33. Click Insert Layer button to create second layer (in this ‘Action’)
34. Right click on 1 st frame in second layer (‘Action’) and select click Actions
35. Write the an action script in Action-Frame window
Declared a variable current and set value = 1
36. Select 2 nd frame in second layer (‘Action)
37. Press F6
38. Right click on 2 nd frame
39. Select Actions
40. Write an action script in Action-Frame window

41. Select 60 th frame in second layer (‘Action’)


42. Press F6
43. Right click on 60 th frame
44. Click Actions
45. Write an action script in Action-Frame window

Variable value increments (current++) and animation continuous as along as variable


value (current) is less than movie clip value (slideshow).

If current (variable value) is less than slideshow (total frames value) and current value
increments by one.

Вам также может понравиться