controlVR.setActiveImage()

Availability

Flash Player 7

Edition

Flash MX 2004.

Usage

controlVR.setActiveImage(image:Number)

Parameters

image The image which you want to display. 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.

Returns

Nothing.

Description

Method; sets an image to the displayed image. You should only pass number values to the controlVR.setActiveImage(). If the number is higher than the highest image in the array, the last image will be used. IF the number is smaller or a negative number the first image will be used.

Example

The following example code can be placed in a button instance and will stop the object if it is spinning and make image number 10 the displayed image.

Note: Only positive values can be passed to the image parameter


on(release){

	vr_mc.spinStop();

	vr_mc.setActiveImage(10);

}