In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

forked from: またまたtweenerがうごかない。rolloverがきかない。

transitionのハズがtransitonになっていましたよ。
Get Adobe Flash player
by paq 04 Apr 2009
// forked from nsmt's またまたtweenerがうごかない。rolloverがきかない。
/* 
 * transitionのハズがtransitonになっていましたよ。
 */
package {
    import flash.display.Sprite;
    import flash.events.Event;
    import flash.events.MouseEvent;
    
    import caurina.transitions.*;
    import caurina.transitions.properties.*;
    
    [SWF(width="465", height="465", backgroundColor="#ffffff", frameRate="60")]
    
    public class FlashTest extends Sprite {
        
        private var maru:Sprite;
        
        public function FlashTest() {
            
            init();
        }
        
        private function init():void {
            
            maru = new Sprite();
            addChild(maru);
            
            maru.graphics.beginFill(0x53ff65);
            maru.graphics.drawCircle(0, 0, 30);
            maru.graphics.endFill();
            
            maru.x = stage.stageWidth/2;
            maru.y = stage.stageHeight/2;
            maru.name = "maru";
            
            maru.addEventListener(MouseEvent.ROLL_OVER, rollOver);
            maru.addEventListener(MouseEvent.ROLL_OUT, rollOut);
        }
        
        private function rollOver(e:MouseEvent):void {
            
            Tweener.addTween(maru, {scaleX:2, scaleY:2, time:2, transition:"easeoutelastic"});
        }
        
        private function rollOut(e:MouseEvent):void {
            
            Tweener.addTween(maru, {scaleX:1, scaleY:1, time:2, transition:"easeoutelastic"});
        }
        
    }
}