Jun
13th

How To Create Calculator Using Actionscript

Files under Flash & Actionscript | 3 Comments | 4,275 views

In this Tutorial, I will teach you how to create a basic flash calculator with simple Actionscript. This tutorial is very simple and easy to understand, this is to ensure that newbie can follow.

Steps On Creating Flash Calculator Using Actionscript

Step 1: Create 2 Input Text
On frame 1, create this 2 input text, which is for user to key in their value, and then set the var to val1 and val2 respectively.
Flash calculator

Step 2: Create 1 Dynamic Text
Same as 1st step, on the first frame, create 1 dynamic text, which is for displaying result. Set the var to output.

Flash calculator

Step 3: Create An Empty Movie Clip
This is to make your calculator more sophisticated, you just add a empty movie clip which will show recently performed action by showing it symbol between the two values. Then, named it as “action“.

Then, click on the empty movie clip, leave the first frame as blank and then insert 5 keyframes, create basic arithmetic symbol on each frame and click on the each keyframe and label it accordingly. And, you need to give it a stop for each frame, just press F9 for each frame, insert the stop();

Photobucket

Step 4: Create 4 Operators (+ - x /) and Reset Button
(more…)

May
30th

Basic XML Slideshow In Flash (Part 2)

Files under Flash & Actionscript | Leave a Comment | 1,720 views

This is continued lesson from last week. See this lesson and learn how to create XML slideshow using Actionscript.

Step 4: Create XML Slideshow Using Actionscript
Select the empty keyframe in your Actions layer. Press F9 to display your Actions panel. Copy and paste all of the following code into your Actions panel:

Photobucket

Firstly, you need to have the code for loading your XML file. In the first line, I set the variable myXML equal to this.firstChild. Then, I declare the variables image and description as array. To track the number of images, you need to set the value of the variable total equal to the total length of the number of childNodes of XML file contains. Then, I use a for loop to cycle through each childNode which contains image and caption attributes in the image and description arrays.

Photobucket

Create Slideshow function here:

(more…)

May
23rd

Basic XML Slideshow In Flash (Part 1)

Files under Flash & Actionscript | 4 Comments | 4,516 views

This week I will teach you how to create a simple XML slideshow in Flash using ActionScript. The advantage of using XML is you no need to change, add, edit or delete images in your FLA file. All you need to do is just update your images and description in the XML file. Besides, you also can control the speed of the slideshow.

XML Flash Slideshow Tutorial

Step1: Prepare Your Images
You can try to prepare all images with same width and height (optional). You can save your images in JPG, GIF, and PNG format into the images folder. Make sure that your images size must not too heavy because it may takes time for flash preloader to load your images if size is larger.

slideshow

Step 2: Add Images To XML
(more…)