What Is ActionScript?

ActionScript is the scripting language you can use in Flash movies. Flash is composed of movies, buttons, symbols, graphics, and so on. ActionScript can be placed on certain movies, symbols, or buttons, as well as within individual time frames in a Flash movie.

ActionScript looks almost exactly like JavaScript, so if you know JavaScript, ActionScript will be simple for you. ActionScript has functions, just like JavaScript, and they're called in the same way. There are two ways for ActionScript to fire off a JavaScript function: the getURL method (acting like a regular JavaScript method) and the fscommand method (acting somewhat differently). We'll be looking at both of these.

Get Advanced JavaScript™: Insights and Innovative Techniques 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.