Adobe FLEX 2-PROGRAMMING ACTIONSCRIPT 3.0 Manual page 30

Programming actionscript 3.0
Table of Contents

Advertisement

Publishing and testing your ActionScript application
Software development is an iterative process. You write some code, try to compile it, and edit
the code until it compiles cleanly. You run the compiled application, test it to see if it fulfills
the intended design, and if it doesn't, you edit the code again until it does. The Flash and Flex
Builder development environments offer a number of ways to publish, test, and debug your
applications.
Here are the basic steps for testing the HelloWorld application in each environment.
To publish and test an ActionScript application using Flex Builder:
1.
Select Run > Run. Make sure that the Project field shows "HelloWorld" and the
Application file field shows "HelloWorld.mxml".
2.
In the Run dialog box, click Run.
The HelloWorld application starts.
If any errors or warnings are displayed in the Output window when you test your
application, fix the causes of these errors in the HelloWorld.mxml or Greeter.as files,
and then try testing the application again.
If there are no compilation errors, a browser window opens showing the Hello World
application. The text "Hello World!" should be displayed.
You have just created a simple but complete object-oriented application that uses ActionScript
3.0. Continue with
"Enhancing the HelloWorld application" on page
Enhancing the HelloWorld application
To make the application a little more interesting, you'll now make it ask for and validate a user
name against a predefined list of names.
First, you will update the Greeter class to add new functionality. Then you will update the
Flex or Flash application to use the new functionality.
To update the Greeter.as file:
1.
Open the Greeter.as file.
30
Getting Started with ActionScript
30.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flex

Table of Contents