AS Reference  :  Notes Index  :  Resources  :  About/Contact  :  Downloads

Movieclip Reference Page

Important Things to Remember about Movieclips

A movieclip is a symbol which (generally speaking) resides in the library, with one or more instances of it on stage.

The content in a movieclip can be anything from a single shape in a single frame to multiple layers containing content (often including other movieclips) changing over many frames.

Additional important things to remember about movieclips:

Movieclip Properties

Here is a list of properties of movieclips that you can alter with actionscript. You can see samples of how to set these properties with actions on a button in the chart here.

_alpha transparency (100=opaque, 50 = 50% translucent, 0=invisible)
_x horizontal pixel position of the movieclip's registration point, within the movieclip's containing timeline (0=left edge, 5 = 5 pixels to the right of the container's left edge, -10 = 10 pixels to the left of the container's left edge)
_y vertical pixel position of the movieclip's registration point, within the movieclip's containing timeline (0=top, 5 = 5 pixels down from the top of the container)
_xscale movieclip's width, as a percentage of its actual width (eg, set to 25 to make movieclip one quarter the width it was when first placed on stage). Scaling is done relative to clip's registration point
_yscale movieclip's height, as a percentage of its actual height (eg, set to 50 to make movieclip half as tall as it was when first placed on stage). Scaling is done relative to clip's registration point
_visible movieclip's visibility (true = showing, false = hidden)
_rotation movieclip's rotation around its registration point, in degrees clockwise, relative to its original orientation.
(color) there is no property for changing the color, but you can set the color by creating a color object for the movieclip and using setRGB to set the clip's color
The next property in the table is not settable, but is useful for finding out what frame of the movieclip the playhead is currently in
_currentframe not settable, but can be read to see what frame the movieclip's playhead is in
Intro
Flash: What & How
Example Sites
Create
Draw, Edit Shapes
Gradients
More Drawing Tips
Import
A Sample
Animate
Frames, Keyframes
Motion Tweens
More Motion Tweens
Shape Tweens
Masks
Control
Stop/Replay
Movieclips Intro
Movieclip Reference
Site Structure 1
Slideshow Movieclip
Contact Form
Scroll Resume
Preloader
Site Structure 2
Publish
Display Options
Player Detection
Optimize
AS 2.0 Basics
Intro to Syntax
Playhead Commands
Playhead Cmds 2
Coded Tween
onEnterFrame
Intro to Classes
Declare/Assign
Comments, Trace
Simple Data Types
Arrays & Objects
Code Blocks
Operators
Beyond Buttons
Code Structure
Toggle Controls
Group of Buttons
Drag and Hit
Distort Magnifier
Scroll Text
Bee Game
Dart Shooter
Sound Control
Easing Slider
Easing Slider 2
Components Intro
Timers & Delays
Dynamic Content
Intro
Drawing API
Create Text
Attach Movieclips
Easing Slider 3
Easing Slider 4
Load jpg/swf
Sliding Viewer
Preload swf
XML
Easing Slider 5
Server Comm
LoadVars (w/ PHP)
AS - PHP Lookup
Text File
Database 1:LoadVars
Database 2:Remoting
Read from directory
AS 2.0 Classes
Intro
Math
Key
Date
Color
EventDispatcher
New Samples
Pie Chart
Event-model Emailer
Tween Sequence
Fuse Sequence
SVG in Flash
Bitmap Topo
SWF as Data Holder
Two-level Menu
Yahoo! Flash Maps
Class-based Game
ASTB Samples
Disclaimer
3D Outlines
Bounce Collide
Address Book
Save Drawings
Home  :  Notes Index  :  Resources  :  About/Contact  :  Downloads