Attachmovie (Movieclip.attachmovie Method) - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

Example
The following code sets the
to 50% when the mouse rolls over the movie clip. Add the following ActionScript
triangle
to your FLA or AS file:
this.createEmptyMovieClip("triangle", this.getNextHighestDepth());
triangle.beginFill(0x0000FF, 100);
triangle.moveTo(10, 10);
triangle.lineTo(10, 100);
triangle.lineTo(100, 10);
triangle.lineTo(10, 10);
triangle.onRollOver = function() {
this._alpha = 50;
};
triangle.onRollOut = function() {
this._alpha = 100;
};
See also
_alpha (Button._alpha property)
(MovieClip._visible property)

attachMovie (MovieClip.attachMovie method)

public attachMovie(id:String, name:String, depth:Number,
[initObject:Object]) : MovieClip
Takes a symbol from the library and attaches it to the movie clip. Use
MovieClip.removeMovieClip()
attached with
attachMovie()
You can extend the methods and event handlers of the MovieClip class by creating a subclass.
Availability: ActionScript 1.0; Flash Lite 2.0
Parameters
- The linkage name of the movie clip symbol in the library to attach to a movie
id:String
clip on the Stage. This is the name entered in the Identifier field in the Linkage Properties
dialog box.
- A unique instance name for the movie clip being attached to the movie clip.
name:String
- An integer specifying the depth level where the SWF file is placed.
depth:Number
448
ActionScript classes
property of a dynamically created movie clip named
_alpha
,
_alpha (TextField._alpha property)
or
MovieClip.unloadMovie()
.
,
_visible
to remove a SWF file

Advertisement

Table of Contents
loading

Table of Contents