User Guide

Table Of Contents
removeMovieClip() 37
Example
The following examples generate a number based on an integer specifying the range:
//pick random number between 0 and 5
myNumber = random(5);
trace (myNumber);// Output: could be 0,1,2,3,4
//pick random number between 5 and 10
myNumber = random(5) + 5;
trace (myNumber);// Output: could be 5,6,7,8,9
The following examples generate a number, and then concatenate it onto the end of a string
being evaluated as a variable name. This is an example of how Flash Lite 1.1 syntax can be
used to simulate arrays.
// select random name from list
myNames1 = "Mike";
myNames2 = "Debbie";
myNames3 = "Logan";
ran = random(3) + 1;
ranName = "myNames" add ran;
trace (eval(ranName));// Output: will be mike, debbie, or logan
removeMovieClip()
Availability
Flash Lite 1.0.
Usage
removeMovieClip(target)
Operands
target The target path of a movie clip instance created with duplicateMovieClip().
Description
Function; deletes the specified movie clip that was originally created using
duplicateMovieClip().
Example
The following example deletes the duplicate movie clip named second_mc:
duplicateMovieClip("person_mc", "second_mc", 1);
second_mc:_x = 55;
second_mc:_y = 85;
removeMovieClip("second_mc");