![]() ![]() ![]() stage.addEventListener(MouseEvent.MOUSE_DOWN,prepareToDraw) Ģ. Select the first frame of the layer 1 hit F9 to open the ActionScript panel. Next let’s write the ActionScript code that makes all the magic.ġ2. I separated the tutorial in more steps to be more readable. I know that seams to be a lot of steps by these are little steps. Now our graphical part should be finished. In the Linkage panel select Export for ActionScript and set the name of the Class to Circle and click Ok. Select the circle MovieClip, right click on it and select Linkage. Go to Window > Library, this will open the Library panel. This will delete the MovieClip from the stage it still exists in the Library panel.ġ1. Now on the stage you have the circle MovieClip select it and hit delete on your keyboard. Click on Scene 1 to go back to our main stage. Layer_1 10 frames and on each frame a circle with different color.ġ0. Repeat the 7 step for the remaining frames. Flash, Flex & ActionScript Tutorials - Flashtuts+ Flash tutorials, Flex tutorials, ActionScript 3.0 tutorials. We make this to change the color of our circles.ĩ. Change the first color to a darker tone (ex dark red) and the next to the same color but a lighter tone. In the color panel change the first two color from the right. Select the second frame of the layer_1 go to Window > Color, this will open the Color panel. Select the first frame in the layer 1 and hit F6 nine times, this will insert 9 keyframes.ħ.Insert a new layer (Insert > Timeline > Layer) name it actions.Select the first frame of the actions layer hit F9 to open the ActionScript panel and type stop(). On the stage double click on the circle MovieClip to open it. Flash Cs3 Professional Hands On Actionscript 3 0 For Adobe Flash Cs3 Professional Hands On Well before Ajax and Microsoft's Windows Presentation Foundation hit the scene, Macromedia offered the first method for building web pages with the responsiveness and functionality of desktop programs with its Flash-based 'Rich Internet Applications'. ![]() Set its name to circle, Type to MovieClip and registration point to center and click Ok.Ħ. ![]() With the circle selected hit F8 to convert it. You can change the color of a handler by double clicking on it.ĥ. When your mouse is between the two existing handlers a plus sign appear beneath him. You insert a new color handler (that little house shape) by placing the mouse between the existing one and click. select the circle and in the Properties panel set the width and height to 50.Ĥ.With the circle selected go to Window > Color this will open the Color panel. In the Properties panel set the stroke to none and pick a color. From the Tools panel select the oval tool. In the Properties panel set the color of the stage to black.ģ. Go to File – New select Flash file (ActionScript 3.0) and click Ok.Ģ. The sketch is easy customizable, you replace my shape with yours and you get different result.ġ. Then we create an instance of TextFormat class and assign color, size and bold properties and apply it to the TextField using second function to make our TextField red with fontsize 32 pixels and bold.įinally, we assign the text property of our newly created TextField to "Hello World!".ĪctionScript 3.0: import this tutorial we will draw something with ActionScript.After completing this tutorial you will be able to draw unique, random, custom and strange shape (backgrounds), all depends of your imagination. ActionScript 2.0: _root.createTextField("message", 0, 5, 5, 300, 50) įirst function creates a TextField named "message" in the depth 0 of the _root(MainTimeline) at coordinates (5,5) having dimensions 300x50, where unit is pixel. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |