Anyone can help me with this one?
I’ve got this code but apparently the reference to the button doesn’t work since i get an AS error upon execution.
for (i=0; i<5; i++) {
var xPos:Number = (i * movieWidth) + 30;
newMC = _root.myContainer.attachMovie("fiche","fiche"+i,i, {_x:xPos, _y:15});
_root.topMenu.["button"+i].onPress = function() {
_root.myContainer.easeX((-640*i));
}
}
I’ve already tried without the brackets but that yields the same result.
Any help is appreciated.
Chris