Posts

Showing posts from 2009

Using Inline ActionScript in Flex Builder 3

Image
Image by angelsk via Flickr ActionScript and MXML go hand in hand. Watch this video below to learn about how create a Flex Project in Flex Builder 3 Writing inline ActionScript inside MXML code, Fundamentals of Events Event Handling More DIY videos at 5min.com

Creating a class from a drawing

Image
In this tutorial you will learn how to how to draw a circle and create a class from an drawing in Flash CS4 . You will also learn object-oriented features of ActionScript 3.0 and the correct approach to design a solution. Steps for creating a class from an drawing (graphics object) in Flash CS4 1. Create a New Document choose Flash file (ActionSceipt 3.0) as shown below 2. Choose Oval Tool (by clicking on Rectangle tool and selecting Oval tool from the menu) 3. Rright click on the cricle and choose "Convert to Symbol..." 4. Convert to Symbol dialog window appears. 5. Click on Advanced button to toggle the Advanced View 6. Provide a name to the Symbol (say Circle) , choose "Movie Clip" as Type, select "Export to ActioScript" and click OK button, it should now be added to the library. 7. You can instantiate the objects of the class from the library by draging it into the stage. Provide each circle an instance name by going to the proper...

Flash Player API for ActionScript

Image
Image by Dekuwa via Flickr The Flash Player APIs in ActionScript 3.0 contain many classes to control objects at a low level. Adobe® AIR™ applications can also use the Flash Player APIs. DOM3 event model - Document Object Model Level 3 event model (DOM3) provides a standard way of generating and handling event messages so that ActionScript objects can interact and communicate, maintaining their state and responding to change. ActionScript 3.0 event model is based on World Wide Web Consortium DOM Level 3 Events Specification and provides a clearer and efficient mechanism. Events and error events are located in the flash.events package. The Flex application framework uses the same event model as the Flash Player API , so the event system is unified across the Flash platform. Display list API - The API for accessing the Flash Player and Adobe AIR display list (the tree that contains any visual elements in the application) consists of classes for working with visual primitives. Dept...

ActionScript 3.0 - Language Features

Image
Image by whaleforset via Flickr Run-time exceptions - Run-time exceptions are used for common error conditions, improving debugging and enabling development of applications with robust error handling Run-time exceptions provides stack traces annotated with source file and line number information and supports quick determination of error cause. Run-time types - type information is preserved at run time, and used by Flash Player and Adobe AIR to perform run-time type checking , improving the system’s type safety. Type information is also used to represent variables in native machine representations, improving performance and reducing memory usage. Sealed Classes - ActionScript 3.0 introduces the concept of sealed classes . A sealed class encapsulates only the fixed set of properties and methods defined at compile time; additional properties and methods cannot be added at run-time. This enables stricter compile-time checking, resulting in more robust programs. It also improves memory...

ActionScript Overview

Image
Image by nikrowell via Flickr What is ActionScript ? ActionScript is the programming language for the Adobe® Flash® Player and Adobe® AIR™ run-time environments. ActionScript is executed by the ActionScript Virtual Machine (AVM), which is part of Flash Player and AIR. ActionScript code is typically compiled into byte code format (a sort of language understood by computers), The byte code is embedded in SWF files, which are executed by Flash Player and AIR. ActionScript 3.0 supports object-oriented programming . Whats New in ActionScript 3.0 ? ActionScript 3.0 uses a new ActionScript Virtual Machine, called AVM2, that uses a new byte code instruction set and provides significant performance improvements ActionScript 3.0 comes with a modern compiler that performs deeper optimizations ActionScript 3.0 includes an expanded and improved application programming interface (API), with low-level control of objects and true object-oriented model. ActionScript 3.0 includes an XML API based ...

ActionScript Introduction

Image
Image via Wikipedia ActionScript is THE scripting language for the development of websites or applications using the Adobe Flash Player platform More DIY videos at 5min.com ActionScript is used in Flash applications to add functionality, validate forms, detect browsers, and much more. What is ActionScript? ActionScript was initially designed for controlling vector animations made in Adobe Flash (formerly Macromedia Flash). ActionScript is a scripting language based on ECMAScript . ActionScript started as a scripting language for Macromedia's Flash authoring tool , now known as Adobe Flash. What can a ActionScript do? ActionScript is a programming language used in Flex applications - ActionScript is a scripting language with a very simple syntax! ActionScript can put dynamic content into a Flex application - A ActionScript statement like this: Alert("hello" + name); can write a variable text into a Flex Applicatoin ActionScript can re...