controlVR.moveRight()

Availability

Flash Player 7

Edition

Flash MX 2004.

Usage

controlVR.moveRight()

Parameters

None.

Returns

Returns nothing.

Description

Moves the object one image to the right.

Example

The first example willl be placed on a button and will move the object one image to the right per click:


on(press){

	vr_mc.moveRight()

}

The second example will also be placed on a button. If the user clicks and holds the button the object will continue to move rightwards until the user releases the button.

on(press){



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

}

on(release){

	clearInterval(moveID);

}

on(releaseOutside){

	clearInterval(moveID);

}

See also

controlVR.moveLeft(),controlVR.moveUp(),controlVR.moveDown()