flash on 2010-5-2
♥0 |
Line 24 |
Modified 2010-05-02 17:51:24 |
MIT License
archived:2017-03-30 10:08:30
ActionScript3 source code
/**
* Copyright 9re ( http://wonderfl.net/user/9re )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/uYWx
*/
package {
import flash.display.Sprite;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.text.TextField;
public class FlashTest extends Sprite {
public function FlashTest() {
// write as3 code here..
var tf:TextField = new TextField;
tf.wordWrap = true;
tf.width = tf.height = 465;
tf.mouseEnabled = false;
addChild(tf);
([true, false]).forEach(
function (useWeekReference:Boolean, index:int, arr:Array):void {
stage.addEventListener(MouseEvent.MOUSE_UP, function ():void {
tf.appendText(<>
useWeekReference : {useWeekReference}
</> + '\n');
}, false, 0, useWeekReference);
}
);
}
}
}