controlVR.getActiveImage()

Availability

Flash Player 7

Edition

Flash MX 2004.

Usage

controlVR.getActiveImage()

Parameters

None

Returns

Returns an integer of the current image displayed in controlVR.

Description

Get the number of the current displayed image in controlVR. The images are numbered in the order which they were placed in the .XML file, therefore the first images will be 1 and so forth.

Example

The following example willl stop the auto rotation when the active image reaches 11:


onEnterFrame = function(){

	if(vr_mc.getActiveImage() == 11){

		vr_mc.spinStop()

	}

}