Flash Player 7
Flash MX 2004.
controlVR.setActiveImage(image:Number)
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.
Nothing.
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.
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);
}