下付き文字のテスト
♥0 |
Line 19 |
Modified 2009-09-08 20:49:18 |
MIT License
archived:2017-03-20 14:55:21
ActionScript3 source code
/**
* Copyright yasnis ( http://wonderfl.net/user/yasnis )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/ygsI
*/
package {
import flash.display.Sprite;
import flash.text.*;
public class FlashTest extends Sprite {
public function FlashTest() {
// write as3 code here..
var tf:TextField = new TextField();
tf.text = "CO2";
tf.x =
tf.y = 150;
var tf1:TextFormat = tf.getTextFormat();
var tf2:TextFormat = tf.getTextFormat();
tf1.size = 12;
tf2.size = 9;
tf.setTextFormat(tf1, 0, 2);
tf.setTextFormat(tf2, 2, 3);
addChild(tf);
}
}
}