next / display(s)
private var state:Number = 0; private var max:Number = 3; private function next():void { state+=1; if (state >= max) state = 0; if (state == 2) attach(); if (state != 2) stack.selectedIndex = state; }