Flash gallery | 5 Beautiful Girl in Flash website Flash source | Dynamic Sliding Menu
0

Flash tutorials | As3 tutorials roundup

Flash Source

AS3 Apple Style Preloader

If you want an easy way to get an Apple style preloader for AS3, as seen below, it’s as simple as this class, which uses the Flash Drawing API, so it’s extremely light.

Read more

Building a Basic Menu in ActionScript 3.0

11-27-2008 10-01-44 PM

Today I have decided to build a simple ActionScript 3.0 horizontal menu based on an array. This is a fairly common practice in Flash development as we are often using data provided from a XML file to dynamically update content within our movies. To simplify this tutorial I am going to use an array that is written within my code instead of parsing it from a XML file.

Download | Read more

Parsing XHTML with E4X in AS3

Gaia has an SEO feature that parses copy from the XHTML page and loads it into Flash. In AS3, it uses E4X. There are a few important things to know when parsing in XHTML using E4X.

Read more

SimpleButton and Events in ActionScript 3.0 Tutorial

In AS3, one of the most significant changes was to make the EventDispatch class the standard tool for calling events. This is a huge step in ActionScript as code written by different developers will become a lot more similar.

In the following example I will demonstrate how to use addEventListener to add a click event to a button that is built using the new SimpleButton object. The SimpleButton is a light weight alternative to the heavier MovieClip object.

Read more

The Loader and the Mouse: Why AS3 Is “Too Hard”

The Loader class is able to capture mouse events. It has mouseEnabled, mouseChildren, and can dispatch mouse events. However, it does not have buttonMode or useHandCursor, which are integral parts of mouse interactivity.

Loader extends InteractiveObject, like its sibling Sprite. Here’s the definition of InteractiveObject from the AS3 Documentation:

“The InteractiveObject class is the abstract base class for all display objects with which the user can interact, using the mouse and keyboard.”

The intention is there. Loader extends InteractiveObject. A Loader can interact with the mouse, including the ability to capture and dispatch mouse events, but it cannot show a finger on roll over, a fundamental interaction with the mouse. Um…okay…

Read more

Debugging in ActionScript 3.0

One of the most important things to know about any programming language is how to debug. In ActionScript trace is the most common way to write data into the output window in order to figure out where your program is breaking. Here is an example of using trace in ActionScript 3.0:

Part1 | Part2

Growing lines

11-27-2008 10-20-37 PM

In this tutorial I will teach you how to create randomly growing lines. The end result can be seen above. The code should be well enough commented, so you know what we are doing in each step.

Cool Mask Effect with Blur

11-27-2008 10-23-04 PM

In this tutorial I will show you how the create the above masking effect by using some simple Actionscript 3. You should already have the basic knowledge of Actionscript 3 so that you can follow the tutorial.

Read more

Boxes Avoiding Getting Hit

11-27-2008 10-24-25 PM

In this Actionscript 3 tutorial, I will show you how to create boxes that will avoid being hit by a ball. The end result is seen above (click the white ball to launh the movie). Let’s get started straight away!

Read more

Understanding pixels and meters with Box2D and how to select an object with mouse

This will be the longest post title in blogging history… anyway I am about to explain you two things that seem to be still unclear about AS3 version of Box2D.

The first one is Box2D measuring units that may seem weird until you realize Box2D works with meters where 1mt = 30 pixels.

Read more | Download

Understanding AS3 Timer Class

A lot of time ago I wrote about AS2 time management in Flash simple timer/countdown. Now it’s time to see how to manage time with AS3.

AS3 has its own class to manage time, the Timer class. You can read some documentation about this class in the official AS3 page, but in this test drive I am going to create two different timers… one using time intervals and one checking for elapsed time at every frame.

timediff

Read more

ActionScript 2.0 to 3.0 Migration Cheatsheet

If you are worried about the changes introduced by AS3 and would like a cheatsheet for a quick reference of most of them, then you should take a look at http://actionscriptcheatsheet.com/

Download

  • Share/Bookmark
 

Story by admin

Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Leave a Comment

Banner
Banner Banner