Adobe
Products
Creative Suite
Photoshop Family
Acrobat Family
Flash Platform
Digital Marketing Suite
Digital Publishing Suite
More products
Solutions
Digital marketing solutions
Digital media solutions
Education
Financial services
Government
Web Experience Management
More solutions
Learning Help Downloads Company
Store
Adobe Store for home and home office
Education Store for students, educators, and staff
Business Store for small and medium businesses
Other ways to buy
Search
 
Info Sign in
Welcome,
My cart
My orders My Adobe
My Adobe
My orders
My information
My preferences
Sign out
Why sign in? Sign in to manage your account and access trial downloads, product extensions, community areas, and more.
Adobe
Products Sections   Search  
Solutions Company
Help Learning
Sign in Welcome, My orders My Adobe
Qty:
Purchase requires verification of academic eligibility
Subtotal
Review and Checkout
Adobe Developer Connection / Flash Developer Center /

Creating your first ActionScript 3 class

by Dan Carr

Dan Carr
  • Dan Carr Design

Created

8 September 2008

Page tools

Share on Facebook
Share on Twitter
Share on LinkedIn
Bookmark
Print
ActionScript Flash Professional

Requirements

User level

Beginning

Required products

  • Flash Professional (Download trial)

Sample files

  • as3_class_examples.zip (6 KB)

In this video tutorial, I demonstrate the basics of creating an ActionScript 3 class. An ActionScript class is simply a text file that stores code externally to the editable FLA file. Developers use classes to create organized code frameworks that can be assigned to elements within their Flash movies (SWF files) and be reused across projects. This tutorial shows you how to create a "hello world" class and assign it to the main Timeline of a Flash file.

This content requires Flash To view this content, JavaScript must be enabled, and you need the latest version of the Adobe Flash Player. To view this content, JavaScript must be enabled, and you need the latest version of the Adobe Flash Player.

Note: The basic series of steps shown here describe how the sample code is organized and assigned to samples originally built in Adobe Flash Professional CS3. Visit the Flash ActionScript 3 samples page for more examples that demonstrate various features common in Flash development.

Where to go from here

Visit the ActionScript Technology Center to learn more about ActionScript 3. Also check out these resources:

  • Flash ActionScript 3 samples
  • Six reasons to use ActionScript 3
  • ActionScript 3 Quick Reference Guide

More Like This

  • Creating preloaders using ActionScript 3
  • Flash glossary: Flash Player
  • Flash glossary: Code snippets
  • Flash glossary: Export for ActionScript
  • Flash glossary: Components
  • Flash glossary: Document class
  • Flash glossary: Actions panel
  • Flash glossary: ActionScript
  • Flash glossary: Class
  • Flash glossary: Base class

Flash User Forum

More
02/06/2012 How to create a seek bar for timeline using ActionScript 2.0 in flash CS4
02/03/2012 Export problems and more!
02/07/2012 Adding Download button to image in XML Grid Gallery
02/07/2012 Possible to physically downsize images in flash - not just by compression?

Flash Cookbooks

More
01/18/2012 Recording webcam video & audio in a flv file on local drive
12/12/2011 Date calculations using 'out-of-the-box' functions
11/08/2011 Easer - custom ease transition for tween tools
11/06/2011 Getting NetworkInfo from both Android and iOS

Products

  • Creative Suite
  • Photoshop Family
  • Acrobat Family
  • Flash Platform
  • Digital Marketing Suite
  • Digital Publishing Suite
  • Mobile apps

Solutions

  • Digital marketing
  • Digital media
  • Web Experience Management

Industries

  • Education
  • Financial services
  • Government

Help

  • Product help centers
  • Orders and returns
  • Downloading and installing
  • My Adobe

Learning

  • Adobe Developer Connection
  • Adobe TV
  • Training and certification
  • Forums
  • Design Center

Ways to buy

  • Adobe Store
  • For students and educators
  • For small and medium businesses
  • For enterprises
  • Special offers

Downloads

  • Adobe Reader
  • Adobe Flash Player
  • Adobe AIR
  • Adobe Shockwave Player

Company

  • News room
  • Partner programs
  • Corporate social responsibility
  • Career opportunities
  • Investor Relations
  • Events
  • Legal
  • Contact Adobe
Choose your region United States (Change)
Choose your region Close

North America

Europe, Middle East and Africa

Asia Pacific

  • Canada - English
  • Canada - Français
  • Latinoamérica
  • México
  • United States

South America

  • Brasil
  • Africa - English
  • Österreich - Deutsch
  • Belgium - English
  • Belgique - Français
  • België - Nederlands
  • България
  • Hrvatska
  • Česká republika
  • Danmark
  • Eastern Europe - English
  • Eesti
  • Suomi
  • France
  • Deutschland
  • Magyarország
  • Ireland
  • Israel - English
  • Italia
  • Latvija
  • Lietuva
  • Luxembourg - Deutsch
  • Luxembourg - English
  • Luxembourg - Français
  • Middle East and North Africa - English
  • Moyen-Orient et Afrique du Nord - Français
  • Nederland
  • Norge
  • Polska
  • Portugal
  • România
  • Россия
  • Srbija
  • Slovensko
  • Slovenija
  • España
  • Sverige
  • Schweiz - Deutsch
  • Suisse - Français
  • Svizzera - Italiano
  • Türkiye
  • Україна
  • United Kingdom
  • Australia
  • 中国
  • 中國香港特別行政區
  • Hong Kong S.A.R. of China
  • India - English
  • 日本
  • 한국
  • New Zealand
  • Pacific - English
  • 台灣

Southeast Asia

  • Includes Indonesia, Malaysia, Philippines, Singapore, Thailand, and Vietnam - English

Copyright © 2012 Adobe Systems Incorporated. All rights reserved.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy (updated 07-14-2009).

Ad Choices

Reviewed by TRUSTe: site privacy statement