forked from: Matrix3D
forked from Matrix3D (diff: 13)
ActionScript3 source code
/**
* Copyright bradsedito ( http://wonderfl.net/user/bradsedito )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/fttY
*/
// forked from tepe's Matrix3D
package
{
import flash.display.Sprite;
import flash.text.*;
import flash.events.*;
public class FlashTest extends Sprite
{
private var tf:TextField = new TextField();
public function FlashTest()
{
var format:TextFormat = new TextFormat();
//format.align = TextFormatAlign.RIGHT; // 整列
format.font = "impact"; // フォント名
format.size = 30; // 文字のポイントサイズ
//format.color = 0x000000; // 文字の色
//format.bold = true; // 太字にするか?
//format.italic = true; // 斜体にするか?
//format.underline = true; // アンダーラインを表示するか?
//format.bullet = true; // 箇条書きにするか?
//format.kerning = true; // カーニングが有効か?(埋め込みフォント時のみ動作)
//format.blockIndent = 0; // 全体のインデント(単位:ピクセル)
//format.indent = 0; // 折り返し行以外のインデント
//format.leading = -2; // 行間の垂直の行送り
//format.leftMargin = 5; // 段落の左マージン(単位:ピクセル)
//format.rightMargin = 5; // 段落の右マージン(単位:ピクセル)
//format.letterSpacing = 4; // 文字間スペースの量(単位:ピクセル)
//format.tabStops = [120]; // タブストップ
//format.url = null; // ハイパーリンク先を文字列で指定
//format.target = null; // ハイパーリンク先のターゲットウィンドウ
tf.defaultTextFormat = format;//デフォルト書式設定
addChild(tf);
tf.z=0;
tf.text ="BradSedito";
tf.type = "input";
tf.x =200;tf.y=200;
tf.width = 400;
tf.multiline = true;
addEventListener(Event.ENTER_FRAME,onEnter);
}
private function onEnter(e:Event):void
{
//tf.rotation++;
//tf.rotationX++;
tf.rotationY++;
//tf.rotationZ++;
}
}
}