flash on 2012-8-2
♥0 |
Line 27 |
Modified 2012-08-02 11:48:30 |
MIT License
archived:2017-03-20 10:40:07
ActionScript3 source code
/**
* Copyright kamexy ( http://wonderfl.net/user/kamexy )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/m5Q3
*/
package {
import flash.text.TextFormat;
import flash.text.TextField;
import flash.system.System;
import flash.display.Sprite;
public class FlashTest extends Sprite {
public function FlashTest() {
var t:TextField = new TextField();
var tf:TextFormat = t.getTextFormat();
tf.size = 24;
tf.bold = true;
t.defaultTextFormat = tf;
addChild( t );
t.text = Hoge.contain( null ).toString();
}
}
}
class Hoge {
public static const NONE:String = null;
public static const LINERA:String = "linear";
public static function contain(value:String):Boolean {
for each ( var now:String in Hoge ) {
return true;
}
return false;
}
}