flash on 2011-4-22
♥0 |
Line 25 |
Modified 2011-04-22 23:37:22 |
MIT License
archived:2017-03-20 02:29:03
ActionScript3 source code
/**
* Copyright e_2o ( http://wonderfl.net/user/e_2o )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/mQoO
*/
package
{
import flash.display.Sprite;
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.text.TextField;
import flash.text.TextFormat;
import flash.text.TextFieldAutoSize;
public class Main extends Sprite
{
public function Main()
{
var tf:TextField = new TextField();
tf.defaultTextFormat = new TextFormat("", 60, 0x0, true);
tf.text = "Ikaruga";
tf.autoSize = TextFieldAutoSize.LEFT;
var bd:BitmapData = new BitmapData(tf.width, tf.height, false);
bd.draw(tf);
var bitmap:Bitmap = new Bitmap(bd);
addChild(bitmap);
bitmap.scaleX = bitmap.scaleY = 2.0;
bitmap.rotation = 4;
}
}
}