Chapter 3. Working with ActionScript

This chapter covers

  • Comments
  • Variable types
  • Operators
  • Loops
  • Conditions
  • Arrays
  • Functions

In chapter 2 we introduced ActionScript. But what exactly can you do with it? As you’ll soon see, quite a bit.

ActionScript is an extremely powerful object-oriented language about which you can dedicate entire books. In this chapter we’ll focus on ActionScript’s core concepts; obviously you’ll need to be familiar with them before we get to the more powerful aspects of Flex itself. Speaking of which, you’re probably anxious to get back into Flex, but tackling some ActionScript fundamentals will allow you to pick up the pace and move forward more quickly.

A fundamental concept in any programming language is that of comments, ...

Get Flex 4 in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.