flash on 2010-5-6
♥0 |
Line 12 |
Modified 2010-05-06 06:58:59 |
MIT License
archived:2017-03-20 08:52:08
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/6Uvc
*/
package {
import flash.display.Sprite;
import flash.text.TextField;
public class FlashTest extends Sprite {
public function FlashTest() {
// write as3 code here..
var a:int = ( 1==2 ) ? (2==3) ? 2 : 1 : ( 3==4 ) ? 4 : ( 4==5 ) ? 5 : 6;
var txt:TextField = new TextField();
txt.text = a.toString();
addChild( txt );
}
}
}