What is Software? | What is Education? | What is Technology? | What is Research? | What is Wi-Fi? | What is Communication? | What is Customer Service?

Free SEO Tutorials & Help

Tutorials:   Adobe Flash   Adobe Photoshop   CorelDRAW   SEO  

Site Map

Website Development | Cable & Broadband Magazine | Solutions for Higher Education | Auction Anything Online

Adobe Flash Help & Tutorials

 Back to Topics

 

What is ActionScript in Flash

ActionScript

Custom Flash Player context menu

Filters with ActionScript

Animation with ActionScript

The Tween class, the TransitionManager class, and progress bars

Bitmap caching with ActionScript

ActionScript arrays example

Interaction between the browser and Flash Player

Stage size control with ActionScript

FlashType sample

Login sample

Photo gallery with tree navigation

Photo gallery with thumbnails

XML menu

ActionScript

TOP

Several ActionScript samples are provided when you install Macromedia Flash 8. This chapter contains a brief overview of each sample.

This chapter contains the following sections:

  • Custom Flash Player context menu

  • Filters with ActionScript

  • Animation with ActionScript

  • The Tween class, the TransitionManager class, and progress bars

  • ActionScript data types

  • Bitmap caching with ActionScript

  • Drawing with ActionScript

  • ActionScript arrays example

  • Interaction between the browser and Flash Player

  • Stage size control with ActionScript\

  • Text loading with ActionScript

  • Formatted text with ActionScript

  • FlashType sample

  • Login sample

  • String processing with ActionScript

  • Image manipulation with the BitmapData class

  • Text field manipulation with ActionScript

  • Photo gallery with tree navigation

  • Photo gallery with thumbnails

  • File upload with the FileReference API

  • XML blog tracker

  • XML language picker

  • XML menu

     

Custom Flash Player context menu

TOP

In this sample, you can see how to add custom options to the Flash Player context menu using ActionScript 2.0. This sample uses ActionScript to modify the context menu by adding cut, copy, and paste functionality that can be applied to the drawing objects on the Stage. The source includes the document file (.fla) and the ActionScript file (.as) that defines the ClipBoard class. Explore both files to learn more about the context menu and writing classes with ActionScript 2.0.

 

Filters with ActionScript

TOP

This sample shows how to apply filter effects to images with ActionScript. You can apply different filters to several images, and then manipulate their properties at runtime. The ActionScript code shows how to apply filters and manipulate the filter properties using components.

 

Animation with ActionScript

TOP

This sample provides an example of programmatic animation using ActionScript. It shows a simple game where instances are animated across the Stage at runtime. You create a custom mouse pointer, and you can tally scores by manipulating strings and using operators to write equations.

 

The Tween class, the TransitionManager class, and progress bars

TOP

This sample shows how to script animation using the Tween and TransitionManager classes, which provide an easy way to animate instances using code. It also shows how to create a progress bar using code.

 

Bitmap caching with ActionScript

TOP

This sample demonstrates the benefit of using bitmap caching when you animate complex vector shapes. Click the button on the Stage to see the vast improvement cacheAsBitmap has on the animating movie clips.

 

ActionScript arrays example

TOP

This sample illustrates array manipulation using ActionScript. The code in the sample creates an array and sorts, adds, and removes items of two List components.

 

Interaction between the browser and Flash Player

TOP

This sample demonstrates how to use the External API (ExternalInterface class) to create interaction between the browser and your SWF file. In this sample, HTML form controls on a web page let you manipulate and display information about an FLV video that plays in a SWF file. Messages from the SWF file appear in an HTML text field.

 

Stage size control with ActionScript

TOP

 
This sample demonstrates how the Stage.scaleMode property affects the values of Stage.width and Stage.height when the browser window is resized.

 

FlashType sample

TOP

This sample shows how to apply and manipulate anti-aliased text in an application. You use the FlashType rendering technology to create small text that's highly legible. This sample also demonstrates how text fields can scroll quickly and smoothly when you use the cacheAsBitmap property.

 

Login sample

TOP

This sample shows how to add simple login functionality to your websites using ActionScript 2.0. The sample uses ActionScript and components to create a small form in which you enter a user name and password and then click a button to enter a site.

 

Photo gallery with tree navigation

TOP

This sample is a photo gallery application with tree navigation. It provides an example of using components to control movie clips dynamically.

 

Photo gallery with thumbnails

TOP

This sample is a photo gallery application with thumbnails. It provides an example of using ActionScript to control movie clips dynamically.

 

XML menu

TOP

This sample demonstrates how to create a dynamic menu with XML data. The sample calls the ActionScript XmlMenu() constructor and passes it two parameters: the path to the XML menu file and a reference to the current timeline. The rest of the functionality resides in a custom class file, XmlMenu.as.

 

Copyright ADOBE - All Rights Reserved Worldwide

 

 

More Topics:

Working with Flash Documents

How to work in Flash WorkSpace

Working with Projects in Flash

Process to Build your First Application in Flash

Using Symbols, Instances and Library Assets in Flash

How to Build Video Player in Flash

How to Work with Color, Strokes and Fills in Flash

How to Create Document in Flash

What is Vector and Bitmap Graphics in Flash

How to Create a Banner in Flash, Part 1

How to Work with Text in Flash

How to Create a Banner in Flash, Part 2

How to Use Imported Artwork in Flash

How to Create a Banner in Flash, Part 3

How to Work with Graphic Objects in Flash

How to Work with Layers in Flash

How to Use Filters and Blends

Working with Graphics in Flash

What is Accessibility Features in Flash

How to Create Motion (Shape Tween & Motion Tween) in Flash

How to Create an Application in Flash

What is Masking in Flash

How to Work with Video in Flash

How to Use Layout Tools in Flash

What are Behaviors in Flash

How to Work with Sound in Flash

How to Create Symbols and Instances in Flash

What is ActionScript in Flash

How to Write ActionScript With Script Assist in Flash

How to Add Button Animation and Navigation in Flash

What is Data Integration in Flash

How to Work with Screens

How to Create a Presentation with Screens

What is Extending Flash

How to Create Multilanguage Text in Flash

How to Create Graphics: Draw in Flash

What is Flash Lite

Ways of Data Integration

How to Create Graphics: Create a Timeline Animation in Flash

Getting Started with Flash Lite in Flash

How to Publish Flash Documents

How to Create Graphics: Making Animations with Easing

Learning Flash Lite 1.X ActionScript in Flash

How to Export Flash Content and Images from Flash

How to Create Graphics: Applying Gradients in Flash

Process of Writing and Editing ActionScript 2.0 in Flash

How to Create Accessible Content in Flash

How to Create Graphics: Apply Graphic Filters and Blends

What is Data and Data Types in Flash

Process of Printing from SWF Files in Flash

Using ActionScript: How to Use Script Assist mode in Flash

Learn Syntax and Language Fundamentals in Flash

How to Create E-learning Content in Flash

Using ActionScript: How to Write Scripts in Flash

Working with Functions and Methods in Flash

Process of Using Templates in Flash

Using ActionScript: Process of Adding Interactivity in Flash

What are Classes in Flash

Control Tag Summary of XML to UI in Flash

Using ActionScript: How to Create a Form with Conditional Logic and Send Data in Flash

What is Inheritance in Flash

What is Data Integration: Overview

Using ActionScript: How to Work with Objects and Classes in Flash

Overview on Interfaces in Flash

What is Data Integration: Using XML for a Timesheet

How to Work with Text and Strings in Flash

How to use Handling Events in Flash

What is Data Integration: Using XUpdate to Update the Timesheet

Learning Animation, Filters and Drawings in Flash

How to Work with Movie Clips in Flash

How to Create Interaction with ActionScript in Flash

How to Work with Images, Sound, and Video in Flash

How to Work with External Data in Flash

What is Security in Flash

How to Debug Applications in Flash

List of Error Messages in Flash

Using Object-Oriented Programming with ActionScript 1.0 in Flash

How to Write Scripts for Earlier Versions of Flash Player in Flash

List of all Keyboard Keys and Key Code Values for using in Flash

Terminology

Introduction to Components in Flash

What are Components in Flash

How to Create an Application with Components

How to Work with Components in Flash

How to Handle Component Events in Flash

How to Customize Components in Flash

How to Create Components in Flash

What is Collection Properties in Flash