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

flash on 2011-3-24

Get Adobe Flash player
by yd_niku 24 Mar 2011
    Embed
/**
 * Copyright yd_niku ( http://wonderfl.net/user/yd_niku )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/v3Zu
 */

package {
    import caurina.transitions.*;
    import flash.display.Sprite;
    import jp.progression.commands.*;
    import jp.progression.commands.lists.*;
    import jp.progression.commands.tweens.*;
    import jp.progression.commands.display.*;
    [SWF(frameRate=30)]
    public class FlashTest extends Sprite {
        public function FlashTest() {
            // write as3 code here..
            var ball:Sprite = new Ball();
            
            var executor:CommandList = new SerialList();
            executor.addCommand(
                new AddChild( this, ball ),
                new Prop( ball, { x: 232, y:232, alpha:0 } ),
                new DoTweener( ball, { alpha:1, time:1, transition:Equations.easeOutSine } ),
                new Wait( 1 ),
                new DoTweener( ball, { x: 20, y:20, time:1, transition:Equations.easeOutSine } ),
                new DoTweener( ball, { x: 400, y:120, time:2, transition:Equations.easeOutSine } ),
                new Wait( 3 ),
                new DoTweener( ball, { scaleX: 10, scaleY:10, time:1, transition:Equations.easeOutBack } ),
                new DoTweener( ball, { x: 232, y:232, scaleX: 1, scaleY:1, alpha:0, time:1, transition:Equations.easeOutSine } ),
                new RemoveChild( this, ball  )
            );
            executor.execute();
            
            // new AddChild( this, ball ).execute();
        }
    }
}
import flash.display.*;
internal class Ball extends Sprite {
    public function Ball(){
        graphics.beginFill(0x99FF00);
        graphics.drawCircle(0,0,20);
        graphics.endFill();
    }
}