Tag Archives: AS2

AS2: Packages

June 26, 2011

0 Comments

Packages are standard in object-oriented programming languages. A package acts as a sort of code filing system, where the package is a folder and the classes are the documents within. On your computer, a package is used to group similar classes. Packages organize your code into groups based on similarity and/or functionality. In ActionScript 2, [...]

Continue reading...

AS2: Event Dispatching

June 26, 2011

0 Comments

Event dispatching provides a way to separate your code, which allows your classes to not have to be completely aware of other classes in your project. For example, a class might react only to dispatched events to which it is listening or to which it is subscribed. Separating your code keeps packages and/or classes reusable, [...]

Continue reading...

AS2: UIEventDispatcher

June 25, 2011

0 Comments

The UIEventDispatcher class in ActionScript 2 is based on an incomplete implementation of the DOM event model, but is closely related to the new event model offered in ActionScript 3. The UIEventDispatcher class provides a means to register events on ActionScript 2 components. The UIEventDispatcher has numerous events to handle loading and unloading, and key [...]

Continue reading...

AS2: Callback Functions

June 25, 2011

0 Comments

In AS2, callback-function properties execute functions when particular events occur. Callback-function properties are simple to implement, but limited. Not all classes have callback-function properties, and the classes that do are not consistent, as the properties can be used in a number of ways. The XML class’s onLoad property lets you execute a custom callback function [...]

Continue reading...

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...

Dynamic Elegant Template V1

December 31, 2010

7 Comments

Download Source

Featured Easily editable, just via xml. Audio file and volume can be controlled via xml. Minimum dimensions for the website can be set. So, that it doesn’t go smaller than that. Remains center aligned no matter what resolution we are using. Galleries and pages stretch to the full screen as soon as the browser window [...]

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...

AS2 XML Flash map

December 19, 2010

33 Comments

Download Source

The main map can be loaded dynamically using xml or created inside the flash itself. Supports loading JPG , GIF, PNG and SWF files. The data.xml file is used to send the landmarks data and map settings. Below code show the map setting in data.xml file. <settings stageWidth=”490″ stageHeight=”300″ stageBgColor=”ffffff” stageTransperent=”100″ mapImage=”map_asset/land.swf” mapInitialXposition=”150″ mapInitialYposition=”250″ popupBoxWidth=”150″ [...]

Continue reading...

AS2 Social Network Buttons

December 17, 2010

0 Comments

Download Source

FLA included (Easy to customize) Support: Adobe Flash 8 (8+) Resolution: Resizable ActionScript Version: AS2 Demo and Readme All the buttons are separated into Movieclips with their names (eg: Twitter_Button_Mc). To put the action buttons: Enter the desired button movieclip in the button layer you will find the button to write your actions. prepending the [...]

Continue reading...

Free social networking icons set

December 13, 2010

3 Comments

Download Source

Free social networking icons set with AS2 FLA included (supported Flash 8, CS3 and CS4) AS2 SWF included Web page and Readme Linked Elegant Social Network  Facebook, Yahoo! Bookmarks, RSS , twitter, youtube, linkedin, Technorati, Myspace, Email, Flickr.

Continue reading...