DigitalArena.co.uk Education
Creative Software Education Software Articles Tutorials
 

Design News & Articles

Software

Photoshop

Technology

Hewlett Packard

MAC World

Typography

Digital Web Magazine - Type

Typographica

Typophile

Web Design

Digital Web

 

Category

3D Software

Animation

Audio

Desktop Publishing

Fonts

Game Creation

Draw and Paint

Multimedia

Photography

Photos

Utilities

Video

Web Design

Actionscript - Beginner

The focus of this article is to know about power of your own events. Considering you are familiar with events, still we will see some brief introduction about events as it is basic of your own events.


This short tutorial covers the basic concepts behind making a character jump in a video game.

Create your own tween manager class in AS3

This is a tutorial about how to build a web site completely with Flash AS3. it will introduce you basic scriping techniques ike creating new elements on the fly, adding graphics to the Visual Interface and finally activating them to animate. More importantly It deals with Object level communication.

In my first tutorial I'll explain how you can get an image from the id3 tag of a mp3 file. This sounds difficult, but it isn't!

I just had an enquiry on how to format currency in flash 8 or ActionScript 2.

I thought it would be handy if I put it in an article so everyone can use it.

As you probably already know ActionScript2 doesn’t have it's own built in currency formatting function, so you have to provide your own.

This example is from one of the currency formatting functions I have used for several years.

It's relatively simple in what it does, but in my view simple is good.

First of all, for those of you that want to know how to call the function, here is an example.

 newFormatedVariable = formatAsDollars(yourVariable);


Now for the function itself which is fairly straight forward .

Firstly we give the function a name.
function formatAsDollars(amount)
{
Then we test to see if it is a number.
    if (isNaN(amount))
    {
        return ("0.00");
    } // end if
Next we round it.
    amount = Math.round(amount * 100) / 100;
    var curr6 = String(amount);
and split it at the decimal point
    var curr3 = curr6.split(".");
and place the results in an array.
    if (curr3[1] == undefined)
    {
        curr3[1] = "00";
    } // end if
    if (curr3[1].length == 1)
    {
        curr3[1] = curr3[1] + "0";
    } // end if
After testing the values in each part of the array for length, we can then append the necessary zero if it needs it.

    var curr4 = new Array();
    var curr2;
We loop through the array
    for (var curr1 = curr3[0].length; curr1 > 0; curr1 = curr2)
    {
We round up
        curr2 = Math.max(curr1 - 3, 0);
        curr4.unshift(curr3[0].slice(curr2, curr1));
    } // end of for
Now we rejoin the dollars and the cents
    curr3[0] = curr4.join("");
    return ("" + curr3.join("."));
} // End of the function
And out put the result.
_root.onEnterFrame = function ()
{
    text_two.text = formatAsDollars(text_one.text);
};

 If you need more information on flash and Actionscript2 you will find some free tutorials on Asctionscript 2, and a lot of other content on building applications with Flash and ActionScript at: www.interactivewebconcepts.net



When I first started to build web applications with flash I had a bit of difficulty with the datagrid. I most of my web applications the datagrid is one of the most useful components. However, when you're new the DataGrid can be a little intimidating to get it to produce the results you want. I am going to give you a few tips on how to get a Flash DataGrid component to read data from a MySQL database.

The InfoBox class creates a pop-up box which can contain an image, a title, a description and a link. It comes in handy in spots where you need to display additional information, but don't have the room, or don't want to dedicate the necessary space. With just a few lines of code, you can add it to any project.

This is a reusable class that you can drop into any project to pop up a word bubble containing some explanatory text, a warning, a reminder, whatever. It works like a tool tip for Flash.

How to create a fullscreen toggle button in AS2 with rollover and rollout effects.

     
 
     
 

Anasazi Stop Motion Animator

Anasazi is for Stop Motion animators, and works with cheap webcams and professional capture hardware alike.

Articles
Software
Technology
Typography
Web Design

Resources
Tutorials
Inspiration

Free Education Resources
Market Traders Business Game
Virtual Map Compass Teaching Aid
Seasons and Moon Phase Clock
Ukulele Tuner App
Model Railway Scale Calculator
DJ Music Mixer App

Share | | | | | Site Map | Google Site Map | Yahoo Site Map ©2008-2011 DJL.