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.
Building a Basic Menu in ActionScript 3.0
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.
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.
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.
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…
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:
Growing lines
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
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.
Boxes Avoiding Getting Hit
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!
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.
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.
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/
Random Post:
Similar Post:
Story by admin
Tags: Adobe, adobe flash cs3 Source, AS3, cool flash, cool flash source, custome flash, download free, download source flash, easy edit, fla customizable, fla files, flas files download, Flash, flash animation, Flash Developer, Flash Source, Flash Tutorials, free, free flash, free flash source, gallery, open source, Resource, snippts, Source Code, source files, Tutorial, Tutorials, webdesign



