flash on 2010-5-4
♥0 |
Line 12 |
Modified 2010-05-04 23:29:43 |
MIT License
archived:2017-03-20 08:52:15
ActionScript3 source code
/**
* Copyright sinclairc5 ( http://wonderfl.net/user/sinclairc5 )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/iN08
*/
package {
import flash.display.Sprite;
import flash.text.TextField;
public class FlashTest extends Sprite {
public function FlashTest() {
// write as3 code here..
var txt:TextField = new TextField();
addChild( txt );
txt.text = 'yo';
txt.text = ( ( mouseX < stage.stageWidth ) || ( mouseY < stage.stageHeight ) ) ? 'success' : 'fail';
}
}
}