flash on 2010-1-20

by teferi
♥0 | Line 38 | Modified 2010-01-20 12:55:23 | MIT License
play

ActionScript3 source code

/**
 * Copyright teferi ( http://wonderfl.net/user/teferi )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/8StW
 */

package {

    import flash.display.Sprite;

    public class RankingBoard extends Sprite {
		private var canvas:Sprite = new Sprite();
        public function RankingBoard() {
            var panel:Panel = new Panel();
            addChild(panel);            
        }
    }
}

import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.display.Sprite;
import flash.display.Graphics;
import flash.display.Stage;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.events.TimerEvent;
import flash.geom.Matrix;
import flash.text.TextField;
import flash.text.TextFormat;
import flash.text.TextFieldAutoSize;
import org.libspark.betweenas3.BetweenAS3;
import org.libspark.betweenas3.tweens.ITween;
import org.libspark.betweenas3.events.TweenEvent;

class Panel extends Sprite
{
	public static const SIZEX:int = 320; // パネルのサイズ。縦横共有
	public static const SIZEY:int = 32; // パネルのサイズ。縦横共有

    public function Panel()
    {
        var matrix:Matrix = new Matrix();
        matrix.createGradientBox(SIZEX, SIZEY, 45 * Math.PI / 180);
        graphics.beginGradientFill("linear", [0xf25773, 0xED1A3D], [1.0, 1.0], [0, 255], matrix);
        graphics.drawRoundRect(0, 0, SIZEX - 2, SIZEY - 2, SIZEY / 4, SIZEY / 4);
        graphics.endFill();
    }
}