User Guide
404
moveableSprite
Syntax
sprite(whichSprite).moveableSprite
the moveableSprite of sprite whichSprite
Description
Sprite property; indicates whether a sprite can be moved by the user (TRUE) or not (FALSE).
You can make a sprite moveable by using the Moveable option in the Score. However, to control
whether a sprite is moveable and to turn this condition on and off as needed, use Lingo. For
example, to let users drag sprites one at a time and then make the sprites unmoveable after they
are positioned, turn the
moveableSprite sprite property on and off at the appropriate times.
Note: For more customized control such as snapping back to the origin or animating while dragging, create a
behavior to manage the additional functionality.
This property can be tested and set.
Examples
This handler makes sprites in channel 5 moveable:
on spriteMove
sprite(5).moveableSprite = TRUE
end
This statement checks whether a sprite is moveable and, if it is not, displays a message:
if sprite(13).moveableSprite = FALSE then
member("Notice").text = "You can’t drag this item by using the mouse."
See also
mouseLoc
move member
Syntax
member(whichCastMember).move()
member(whichCastMember).move(member whichLocation)
move member whichCastMember {,member whichLocation}
Description
Command; moves the cast member specified by whichCastMember to the first empty location in
the Cast window (if no parameter is set) or to the location specified by
whichLocation.
For best results, use this command during authoring, not at run time, because the move is usually
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
run time, set the member of the sprite.
Examples
This statement moves cast member Shrine to the first empty location in the Cast window:
member("shrine").move()
This statement moves cast member Shrine to location 20 in the Bitmaps Cast window:
member("Shrine").move(20, "Bitmaps")