Nov
14th

How To Load External Text Into Flash Movie

This week I will teach you how to load an external text files into your flash, this is important as you no need to edit the .fla file to change the text, you just need to update the content in the text file.

First of all, create a text file text.txt, make sure that the file has to be in the same path with flash file (.fla). If you still not clear about this, you may follow the steps below:

Steps of Loading External Text Into Flash

1. Open the text file, and write your content. The first part yourText is the variable name and the second part is the text that is going to be displayed. You can try to change the second part from time to time but make sure that it is after the equal mark.

loadExternalText1i

loadExternalText2i

yourText=I want to see this text.In this sample, you need to create 2 dynamic text and so you need to create 2 variable in flash. Then, you can load these 2 variables in the same text file by typing “&” after second part.

loadExternalText3

2. After that, save your text file.

(more…)

Oct
31st

Part (II): Create Rain Drop Effect Using Flash

Step 8: Then create a new layer and name it rainwave. After that, click on frame 10 and press F6 key.

rain_drop_effect-1

Step 9: Select the Oval Tool, go to the Properties Panel and select the following attributes:

1. For Line color choose #000000
2. Choose Solid as type of your line, with thickness set to 0.3.

rain_drop_effect-2

Then, draw an “ellipse” and place it on the position like it is shown.

(more…)

Oct
24th

Part (I): Create Rain Drop Effect In Flash

In this simple but detailed tutorial, you will learn how to create rain effect using Flash without Actionscript. Besides that, you will also learn how to create an ellipse and how to use Line Tool.

I thought it would be a great idea to have a layer of realistic looking rain in a flash movie but I have fairly limited knowledge of writing Actionscript. So, I will use this method to achieve what I desire.

Step 1: Start a new project with dimension of 200 X 150 pixels, set the frame rate at 30fps and go to properties panel set the background color #3399cc.

rain_effect

Step 2: Create a new layer and name it raindrop.

rain_effect

Step 3: Select the Line Tool, go to the Properties Panel (Ctrl+F3) below the stage and set the following attributes:

i) For Line color choose #000000
ii) Choose Solid as type of your line, with thickness set to 1.

rain_effect

Then, draw a “line” and place it on the stage.

Step 4: Select the “line”, and then press F8 key to convert it into a Movie Clip or you can right click on the “line” and convert to symbol. After that, double click on the movie clip. You should now be inside the movie clip.

rain_effect

(more…)

Sep
12th

Simple Hit Test In Actionscript

In this Flash tutorial you will learn how to use write Actionscript to make a simple hit test, this is the fundamental thing that you need to know before create any flash game.

First of all, do you understand what is Hit Test? Hit Test enables you to ask Flash “Is this movie clip in contact with other movie clip?

My Basic Code On Hit Test (Collision Detection)

In order to create a collision, you need to have at least 2 object. Create a circle and convert it into movie clip. Then, give the instance name called ball1. Create the another circle and repeat the step as ball1 but this time give the instance name called ball2.

Next, remember to create the dynamic text which to display the message whether the ball is in contact with each other. Display “Collision Detected” once 2 ball is in contact else will display ” No Collision“.

HitTest

Then, select on the ball1 and press F9. The Object Actions panel will appear. After that, copy and paste the following code into that panel.

(more…)

Aug
29th

Tutorial: Animating A Walk In Flash

walking

In this tutorial, you will learn how to create a human walking using Flash & Actionscript. First, design a series of human walking using design software and tools. Next, insert each on different frame in Flash inside the movie clip. Let me teach you step by step:

Firstly, you need to convert the human character to a Movieclip. At the first frame, you select it, and give the instance name for the object. Just give the instance name “walking“.

walkingtutorial

walkingtutorial

My Actionscript (To Control The Coordinate Setting):

You need to control over how fast a human character moves on each frame. Sometimes it will be 1 pixel, sometimes as many as 3 pixels.

(more…)