Tag Archives: Actionscript 3.0 Tutorial

Developing Solutions Built with the DOM3 Event Model

May 15, 2011

0 Comments

ActionScript 3.0 now supports the ECMAScript, DOM3, event model syntax. In layman’s terms, this means that you now use the Listener object to detect when you interact with your Flash movie using either a keyboard, mouse, or the new gesture interfaces used when touching the screen directly. This is a big move from AS2. As [...]

Continue reading...

Using Code Snippets to Get You Started

May 14, 2011

1 Comment

Transitioning to AS3 after your entire career has been spent working with AS2 does come with a learning curve. To help you through the transition, Adobe has included a great new tool in Flash CS5, the Code Snippets panel, which you can use to quickly add popular scripts to your movies. Here’s what you do: [...]

Continue reading...

What Is the Same between AS2 and AS3?

May 11, 2011

0 Comments

With all the changes between AS3 and AS2 it important to remember that there is a lot of functionality that is the same between them. This will help as you transition from traditional AS1/2 Flash development to mobile app development using AS3. For instance you still use the following in the same way:   Variables [...]

Continue reading...

ActionScript, rendering and the playhead

December 25, 2010

1 Comment

This article aims to clear up the confusion regarding how the Flash player deals with playing timelines and how the rendering loop works. Rendering First things first, the player is never drawing when it is executing a script. This means that any script that changes the visible content more than once for each rendering pass [...]

Continue reading...

Flash Player 10.1 on Google Nexus Ones

August 25, 2010

4 Comments

Flash Player 10.1 for Android (2.2) is now generally available as of August 16; we had previously released Flash Player 10.1 to partners in June 2010. We expect additional Android devices like the HTC Incredible, Samsung Galaxy S, Motorola Milestone, Droid X, Droid by Motorola, Dell Streak and other mobile platforms to get Flash Player [...]

Continue reading...

Flash 3d animation with actionscript

May 11, 2010

2 Comments

Step 1 Download TweenMax for AS3 and save the “gs” folder to the same location where you have the .fla file located. Create a new >Flash Project Click on the plus icon New flash file > “Flash file” > Change the name of project <Untitled File>.fla Select the Selection Tool V Go to Properties tab [...]

Continue reading...

How to Add scrolls to textboxes with ActionScript 3.0

February 1, 2010

3 Comments

In this Flash actionscript 3.0 tutorial we will read some content from an external text file into a text field, then add a couple of buttons to scroll down the text in the text field. First we need to set up a few things, like a textbox and the up and down buttons. So first [...]

Continue reading...

How To Apply filters with AS3

February 1, 2010

4 Comments

The DropShadowFilter class lets you add a drop shadow to display objects. The shadow algorithm is based on the same box filter that the blur filter uses. You have several options for the style of the drop shadow, including inner or outer shadow and knockout mode. You can apply the filter to any display object [...]

Continue reading...

How to Use examples in the ActionScript 3.0

February 1, 2010

0 Comments

The ActionScript 3.0 Language and Components Reference supports several Adobe products, including Flash CS3 and Flex 2. The content covers application programming interfaces (APIs) that are specific to ActionScript and that may be implemented differently depending on the authoring tool you are using. Therefore, to test and use the example code in the ActionScript 3.0 [...]

Continue reading...

Custom Events in Objective-C

January 29, 2010

4 Comments

Learn objective c with Actionscript Events or in this case Notifications are used for having loosely coupled relationships between instances in your application. So it is possible to let other instances listen to specific events without knowing each other . If you want to listen to a custom event in ActionScript it would look something [...]

Continue reading...

How to create smooth animations in flash

January 23, 2010

5 Comments

Continue reading...

How to add Google Maps API for Flex

January 13, 2010

2 Comments

Google Maps has proven itself to be one of the best mapping systems on the internet. We have also seen a great number of google maps mashups take place (Everything some Subway maps to where is the cheapest gas). I only felt it would be nice to have an intro on how to use the [...]

Continue reading...

MouseOver in ActionScript

January 9, 2010

0 Comments

Create an object that appears when the user moves mouse cursor over some area. Launch Flash Designer and choose “Blank Animation”. Choose “Frame” > “Frame Size” to set movie dimensions. Enter 300 x 300 and click OK. Choose “Rectangle” tool and draw 2 rectangles inside the frame. First rectangle will become active area, second rectangle [...]

Continue reading...

How to Read _droptarget property in ActionScript

January 9, 2010

1 Comment

Drag blue rectangle over the yellow. If you drop the blue one on the yellow, the script will align blue rectangle inside the yellow. Follow the steps below: Launch Flash Designer and choose “blank”. Set the frame delay to “Stop” (“Frame” > “Frame Delay”). Size the frame at about 300×300. (“Frame” > “Frame Size”) Create [...]

Continue reading...

How to startDrag and stopDrag in ActionScript

January 9, 2010

1 Comment

DRAG MULTIPLE OBJECTS FROM A SINGLE ACTIONSCRIPT If you need to be able to drag several objects (one at a time) in a single frame this is a good way to get it done. You can click and drag either of the rectangles below: NOTE: Minimum Flash Designer version 5.0.17 (verify revision number under “Help” [...]

Continue reading...

How to Modify shape color with ActionScript

January 9, 2010

2 Comments

Follow the steps below: Launch Flash Designer and create a blank document. Set the frame delay to “Stop” (“Frame” > “Frame Delay”). Size the frame at about 300×300 (“Frame” > “Frame Size”). Draw 2 circles with the “Ellipse Tool”. Select both shapes (Ctrl+A). Choose “Item” > “Line Width” > “None”. choose “Edit” > “Convert to [...]

Continue reading...

How to Mail flash form with actionscript

January 7, 2010

18 Comments

Use PHP code to send email directly from Flash Create the form: Create a new document and set the size to 400 x 300 (“Frame” > “Frame Size”) or other Set “Frame 1″ to “Stop” (“Frame” > “Frame Delay” and check “Stop”, click OK) Create edit fields and labels Double click each edit field to [...]

Continue reading...

How to Create flying hearts effect

January 7, 2010

0 Comments

Download the source here Launch Flash Designer and set movie dimensions 500 x 500 (or any desired). Change frame delay to “Stop”. Add new frame, change “Frame 1″ to “Master Frame (1)” Go to “Frame 1″, select “Master Frame (1)” as the background: Create a heart Go to “Frame 1″ Choose “Insert” > “Shape or [...]

Continue reading...

Create a flash scroll text

January 3, 2010

1 Comment

The following tutorial illustrates how to create scrollable text object and use ActionScript to scroll the text up or down. Launch Flash Designer and choose “Blank document” from the startup screen. Choose “HTML Text tool” and draw a rectangle to create blank HTML text object. This will be the text to scroll. Type some text [...]

Continue reading...

Flash Digital clock

January 3, 2010

1 Comment

Display current date and time in a Flash movie. Launch Flash Designer and choose “Blank”. Set frame size to 300 x 100 (“Frame” > “Frame Size”) Create 2 edit fields with the “Edit Field” tool (they should appear as Edit1 and Edit2, if necessary rename edit fields: double click each field and change “variable name”) [...]

Continue reading...
Page 1 of 212