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.
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.
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.
Step 2: Create a new layer and name it raindrop.
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.
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.
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“.
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.
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“.
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.