|
|
|
|
Author |
Message |
kasselbiddy
Age: 41
Joined: 24 May 2012
Posts: 14
|
|
This article will come in handy for those of you who are interested in Flash, or perhaps have a basic idea and would like to learn more about Adobe Flash. convert swf to mov mac.
1. How to use a Timer class in Flash (swf to imovie)
- Create a new timer variable timer_01 as in this example.
- Add an event listener function play_timer.
- Copy box movieclip from the FLA file of TIP number 3 into the library.
- Add play_timer function.
2. Understanding Object Names
Usually some Flash beginners think that object names in the library are same as instance names. In fact, they ARE NOT. Please make sure that you do not get confused with instance names, class names, and object names in the library. They have totally different meanings in Flash. Below example shows that gray_box_01 is the instance name, graybox is the class name without spacing (which is used to create instances by ActionScripts), gray box is the movieclip (or object) name with spacing in the library.
3. How to duplicate MovieClips in ActionScript 3.0
- Create a movieclip "box" in the library.
- Right-click on it and click on Linkage…
- Set the class as box as show in below screenshot.
- var b:MovieClip = new box(); duplicates a movieclip.
- Line no. 4 and 5 set the X and Y positions of a dupliated movieclip.
- addChild() function adds that dupliated movieclip onto stage.
4. How to add Right-Click menu in Flash ActionScript 3.0
- Create custom menu items.
- Add Event Listeners to those items.
- Hide built-in items.
- Apply the custom menu items.
5. Using Tweener class or tween engine for motion tweening
There are a number of open source tween engines on the web. Tweener is one of the most popular tween engines for motion tweening.
- Download Tweener Class (AS3).
- Import Tweener class by unzipping it and put caurina folder into the folder that your flash file exists.
- Create a movieclip "gray box" in the library.
- Drag it 2 times and give them instance names gray_box_01 and gray_box_02.
- Apply Tweener to them.
- Download Tweener Documentations to understand and apply it better.
|
|
|
|
Last edited by kasselbiddy on Sun Dec 15, 2013 11:16 pm; edited 1 time in total
|
|
|
|
|
ivy00135
Joined: 06 Nov 2012
Posts: 49808
|
|
|
|
|
|
|
View next topic
View previous topic
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|
|
|
|
|
|
|