flash on 2013-1-2
♥0 |
Line 23 |
Modified 2013-01-02 18:34:05 |
MIT License
archived:2017-03-20 11:00:53
ActionScript3 source code
/**
* Copyright yarhalla1 ( http://wonderfl.net/user/yarhalla1 )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/k6L3
*/
package {
import flash.display.Sprite;
import flash.text.TextField;
public class FlashTest extends Sprite {
private var tf :TextField = new TextField;
private function log(text:String):void
{
tf.appendText("\n" +text);
}
private function processAnd(val:uint):uint
{
return val & 0xFF000000;
}
public function FlashTest() {
tf.text = "Hello, world!";
addChild( tf );
var white:uint = 0x00FFFFFF;
var black:uint = 0x00000000;
log(white + "," + black);
log(processAnd(white) + "," + processAnd(black));
}
}
}