move()

Usage

-- Lingo syntax
memberObjRef.move({intPosn, castLibName})

// JavaScript syntax
memberObjRef.move({intPosn, castLibName});

Description

Member method; moves a specified cast member to either the first empty location in its containing cast, or to a specified location in a given cast.

For best results, use this method during authoring, not at runtime, because the move is typically saved with the file. The actual location of a cast member does not affect most presentations during playback for an end user. To switch the content of a sprite or change the display during runtime, set the member of the sprite.

Parameters

intPosn Optional. An integer that specifies the position in the cast library castLibName to which the member is moved.

castLibName Optional. A string that specifies the name of the cast library to which the member is moved.

Example

This statement moves cast member Shrine to the first empty location in the Cast window:

-- Lingo syntax
member("shrine").move()

// JavaScript syntax
member("shrine").move();

This statement moves cast member Shrine to location 20 in the Bitmaps Cast window:

-- Lingo syntax
member("shrine").move(20, "Bitmaps")

// JavaScript syntax
member("shrine").move(20, "Bitmaps");

See also

Member


 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/director/mx2004/release_en/07_me240.htm