controlVR.moveUp()

Availability

Flash Player 7

Edition

Flash MX 2004.

Usage

controlVR.moveUp()

Parameters

None.

Returns

Returns nothing.

Description

Moves the object one layer upwards.

Note: Nothing will happen if the object is on the highest layer.

Example

The first example willl be placed on a button and will move the object one layer up per click:


on(press){

	vr_mc.moveUp()

}

The second example will also be placed on a button. If the user clicks and holds the button the object will continue to move upwards until the user releases the button or until it reaches the highest layer.

on(press){



	var moveID = setInterval(vr_mc , "moveUp",50)

}

on(release){

	clearInterval(moveID);

}

on(releaseOutside){

	clearInterval(moveID);

}

See also

controlVR.moveLeft(),controlVR.moveRight(),controlVR.moveDown()