I already have an array set up with a navigation and tween on the MC’s when the navigation is pressed. My question is, how would I apply a simple automated play to it.
The functions are already there that make the navigation bring up my corresponding MC, i just need some autoplay to it.
here is my source:
this.scrollIcons = function(p_offset:Number) {
// Scrolls the icon list
this.setIcon(this.currentIcon + p_offset);
};
this.setIcon = function(p_icon:Number) {
// Set the currently selected icon
if (p_icon != undefined) {
if (p_icon < 0) p_icon = 0;
if (p_icon > this.icons.length - 1) p_icon = this.icons.length - 1;
if (p_icon != this.currentIcon) {
this.currentIcon = p_icon;
this.redraw(false);
}
}
};