I think I am getting pretty close here but can anyone direct me in the right direction to be able to return the values in the array in a sequential order?
var twentythreeX:Number = 0;
var unihiphopX:Number = -320;
var unimetalX:Number = -760;
var myLoc:Array = [twentythreeX, unihiphopX, unimetalX];
trace(myLoc[0])
trace(myLoc[1])
//worknextbtn_mc.x=myLoc[0]
//worknextbtn_mc.y=myLoc[1]
next_mc.addEventListener(MouseEvent.CLICK, nextClick);
for(var i:int = 0; i<myLoc.length ; i++){
next_mc.addEventListener(MouseEvent.CLICK, nextClick);
}
function nextClick(event:MouseEvent):void{
trace(myLoc*)
trace(myLoc[1])
}
This is for a simple slide show just when the next button is pressed it will tween to those coordinates. Thanks!:hitman2: