stop(); var i:Number=0; if (init_mouse == undefined) { var mouseListener:Object = new Object(); mouseListener.onMouseWheel = function(wheelNum:Number) { if (wheelNum > 0)//rolling wheel toward the screen { //trace(_root.cont1._rotation); _root.cont1._rotation+=15; } else if (wheelNum < 0)//rolling wheel away from the screen { _root.cont1._rotation-=15; } } Mouse.addListener(mouseListener); init_mouse=1; } if (init_key == undefined) { var keyListener:Object = new Object(); keyListener.onKeyDown = function() { if (Key.isDown(Key.LEFT) && (_currentframe>=11)) { //trace(_currentframe); gotoAndStop(_currentframe-10); //trace(_currentframe); break; } else if (Key.isDown(Key.RIGHT) && (_currentframe<30)) { //trace(_currentframe); gotoAndStop(_currentframe+10); //trace(_currentframe); break; } /* else { trace("jep"); gotoAndStop(_currentframe); } */ } Key.addListener(keyListener); init_key=1; }