Miscellany
public text v1 · immutablevar mouseListener:Object = new Object();
mouseListener.onMouseWheel = function(delta:Number) {
if(delta == 3 ){
pos++;
this.enabled = false;
if (pos>myArray.length) {
pos = 1;
}
loadImage(myArray[pos-1].attributes.url);
}
else{
pos--;
if (pos<1) {
pos = myArray.length;
}
loadImage(myArray[pos-1].attributes.url);
}
}