Choosing Between ActionScripting 2.0 and ActionScripting 3.0 in Flash CS3
With ActionScripting 3.0 taking such a drastic turn away from the old paradigm of ActionScripting 2.0, it helps that Flash CS3 allows you to create a document using the old scripting style; here's how.
ActionScripting Basics: Using System.capabilities to Determine a User's Screen
One of the many functions of System.capabilities is to allow you to use ActionScripting to determine a user's screen resolution.
Flash Tip: Commenting Out ActionScripts
Comment out your ActionScripts using preceding backslashes to insert notation, or inactivate blocks of code.
Creating Tabbed Content in Flash with swapDepths
Using swapDepths in Flash to change the depth of your tabbed content windows, you can create an intuitive and stylish content display with easy navigation.
Basic Flash Password Protection
While you don't want to count on this for definite site or application security, you can use this basic password script as part of a game or any other fun animation.
ActionScripting Basics: Using getProperty
Use getProperty to return the values of various MovieClip properties for use in scripts.
ActionScripting Basics: Using getProperty and Dynamic Text to Display a Value
When you assign a variable to a value fetched by getProperty, you can then pass that value to another function to be used in an operation. In this case, the operation changes the text in a dynamic text field on the stage to display the value returned on the Flash stage.
ActionScripting Basics: duplicateMovieClip
Create duplicates of movie clips using Actionscripting, isntead of by dragging new instances onto the stage.
ActionScripting Basics: removeMovieClip
Use removeMovieClip to remove instances of clips created by the duplicateMovieClip ActionScript.
ActionScripting Basics: .textColor with Dynamic Text Fields
textColor is an ActionScript property that lets you define or change the text color inside of a dynamic text field on a movie clip event.
ActionScripting Basics: Revamping getURL with Animated Movie Clips
Another look at using getURL, this time more cleanly done and demonstrated on an animated movie clip.
ActionScripting Basics: Basic Date Functions
Flash can read your system date and return that information to display on-screen.
ActionScripting Basics: Mouse.hide ( ) and Mouse.show ( )
You can conceal and reveal the default mouse cursor on the Flash stage, with an easy single-line Actionscript.
Referencing ActionScripts from an External File
Cut down on excess code by referencing oft-used lines of ActionScripting from external files using includes.
Animating with ActionScripts
There's more than one way to skin a cat, more than one way to pluck a chicken, and more than one way to animate in Flash. Use ActionScripts to animate changes in size, color, position, and anything else that you can code.
ActionScripting Basics: Changing Alpha by Degrees with setProperty
Using setProperty to change the value of a shape's properties can be done using variables to control those properties in progressive degrees, rather than by setting them as arbitrary values. This example uses the _alpha property to demonstrate.
ActionScripting Basics: Using setProperty
Use setProperty to change the properties of movie clips when certain conditions are met.
ActionScripting Basics: One-Click Adding and Removing Scripts
You can add to your Flash Actionscripts any number of ways, but one of the easiest ways is to use the buttons above the window that displays the code.
ActionScripting Basics: Moving/Rearranging Scripts
Move your lines of Actionscripting around without having to copy-paste them or re-insert them from scratch.
ActionScripting Basics: Expert Mode and Normal Mode
Switch between Expert Mode and Normal Mode when working with Flash's Actions pane, and find out the benefits to both.
ActionScripting Basics: Check Syntax
Use Check Syntax to check for errors in your ActionScript before they cause problems in your published movie.
ActionScripting Basics: Search/Find
Hate digging through code for a single command that needs to be edited or deleted? It may not seem like such a big deal when you've only got one or two scripts--but when you've got ten or twenty stacked together, using the Find function can be a real lifesaver.
ActionScripting Basics: Find and Replace
Search out and replace a single occurrence of a search string in your ActionScripts, every occurrence, or as many as you need to--without having to do any of the work of finding or edting yourself.
ActionScripting Basics: Breakpoints
Use breakpoints to help in debugging by isolating trouble spots as your Flash movie plays.
ActionScripting Basics: View Line Numbers
Viewing Line Numbers can make organizing and following your ActionScripts easier on both your mind and your eyes.
Flash Tip: Action Scripting Basics: Inserting a Simple Stop
The stop command is most likely the most basic of all of Flash's ActionScript commands, and the most essential. It's also a good place to get started with familiarizing yourself with the concepts of working with ActionScripting.
Flash Tip: ActionScripting Basics: "On" Command Options
Moving from the most basic to the most common, the "On" command is the foundation of mouse-action-based user interactivity in Flash.
ActionScripting Basics: Collision Test Using hitTest
The hitTest action lets you check to see if one shape overlaps another/enters its bounding box--in essence, testing for collision action.