controlVR.zoomOut()

Availability

Flash Player 7

Edition

Flash MX 2004.

Usage

controlVR.zoomOut()

Parameters

None.

Returns

Returns nothing.

Description

Calling the zoomOut method will decrease the object size by 10 percent.

Note: Nothing will happen once the object has reached 50 percent.

Example

The first example willl be placed on a button and will zoom the object out :


on(release){

	vr_mc.zoomOut()

}

The second example will also be placed on a button. If the user clicks and holds the button the object will continue to zoom outwards until the user releases the button or until it reaches it's lowest zoom percentage.

on(press){

	var zoomID = setInterval(vr_mc , "zoomOut",50)

}

on(release){

	clearInterval(zoomID);

}

on(releaseOutside){

	clearInterval(zoomID);

}