Adobe
Products
Acrobat
Creative Cloud
Creative Suite
Digital Marketing Suite
Digital Publishing Suite
Elements
Photoshop
Touch Apps
More products
Solutions
Digital marketing
Digital media
Education
Financial services
Government
Web Experience Management
More solutions
Learning Help Downloads Company
Buy
Home use for personal and home office
Education for students, educators, and staff
Business for small and medium businesses
Licensing programs for businesses, schools, and government
Special offers
Search
 
Info Sign in
Welcome,
My cart
My orders My Adobe
My Adobe
My orders
My information
My preferences
My products and services
Sign out
Why sign in? Sign in to manage your account and access trial downloads, product extensions, community areas, and more.
Adobe
Products Sections Buy   Search  
Solutions Company
Help Learning
Sign in Sign out My orders My Adobe
Preorder Estimated Availability Date. Your credit card will not be charged until the product is shipped. Estimated availability date is subject to change. Preorder Estimated Availability Date. Your credit card will not be charged until the product is ready to download. Estimated availability date is subject to change.
Qty:
Purchase requires verification of academic eligibility
Subtotal
Review and Checkout
Adobe Developer Connection / Flash Developer Center / Flash Professional glossary /

Flash glossary: Export for ActionScript

by Adobe

Adobe Flash Professional

Created

25 July 2010

Page tools

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

Unless you specifically target symbols in the Library with linkage settings, instances of movie clip symbols in an Adobe Flash Professional document's Library cannot be programmatically accessed or created using ActionScript. When you publish a SWF file, any symbols in the Library that are never used on the Stage are not included—which is helpful because you don't need to comb through the Library and delete unused symbols and graphics to reduce the SWF's file size. Only the symbols that are used are exported.

However, this means that if you want to make a symbol available in the SWF for ActionScript to access at runtime, you must specify that the symbol should be exported for ActionScript.

Export for ActionScript

Follow these steps to enable the Export for ActionScript setting:

  1. Select the symbol in the Library panel and open its Symbol Properties dialog box.
  2. Enable the Advanced settings.
  3. In the Linkage section, enable the Export for ActionScript check box. This will activate the Class and Base Class fields.
  4. Click OK.

By default, the Class field is populated with the symbol name (edited to remove any spaces). To specify that the symbol should use a custom class for its behavior, enter the full name of the class in this field, including its package. If you want to be able to create instances of the symbol in ActionScript, but don't need to add any behavior, you can leave the default class name that Flash assigns.

The Base Class field's value defaults to flash.display.MovieClip. If you want your symbol to extend the functionality of another customer class, you can specify that class's name instead—as long as that class extends either the Sprite or MovieClip class.

A warning is displayed if Flash cannot find an external ActionScript file with a definition for the specified class: "A definition for this class could not be found in the classpath, so one will be automatically generated in the SWF file upon export." Disregard this warning if the symbol does not require unique functionality beyond the functionality inherited by the MovieClip class. Otherwise, enter the correct classpath that matches the ActionScript file (.as file) you are using.


Tool used

  • Library

Related concepts

  • ActionScript
  • Base class
  • Class
  • Linkage
  • SWF

Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License

More Like This

  • Five demos of Flash CS4 Professional
  • Exploring the new 3D features in Flash CS4 Professional
  • Combining animation and ActionScript using Flash Professional CS5 and Flash Builder 4
  • 3D view controller in Flash using ActionScript 3
  • Creating your first ActionScript 3 class
  • Creating movie clips with reflections in ActionScript 3.0
  • 3D moving stars in Flash using ActionScript 3
  • Creating liquid GUIs with Flash and ActionScript 3.0
  • Examining the Puzzle Game sample application
  • Examining the ActionScript 3 Flash video gallery source files

Flash User Forum

More
04/23/2012 Auto-Save and Auto-Recovery
04/23/2012 Open hyperlinks in new window/tab/pop-up ?
04/21/2012 PNG transparencies glitched
04/01/2010 Workaround for JSFL shape selection bug?

Flash Cookbooks

More
02/13/2012 Randomize an array
02/11/2012 How to create a Facebook fan page with Flash
02/08/2012 Digital Clock
01/18/2012 Recording webcam video & audio in a flv file on local drive

Products

  • Acrobat
  • Creative Cloud
  • Creative Suite
  • Digital Marketing Suite
  • Digital Publishing Suite
  • Elements
  • Mobile Apps
  • Photoshop
  • Touch 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

  • For personal and home office
  • For students, educators, and staff
  • For small and medium businesses
  • For businesses, schools, and government
  • 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
  • Security
  • 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
  • 台灣

Southeast Asia

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

Copyright © 2012 Adobe Systems Incorporated. All rights reserved.

Terms of Use | Privacy Policy and Cookies (Updated)

Ad Choices

Reviewed by TRUSTe: site privacy statement