Enter code here.package;
import flixel.FlxG;import flixel.FlxSprite;import flixel.FlxState;import flixel.text.FlxText;import flixel.ui.FlxButton;import flixel.util.FlxMath;
/** * A FlxState which can be used for the game's menu. */class MenuState extends FlxState{ /** * Function that is called up when to state is created to set it up. */ override public function create():Void { add(new FlxText(10, 10, 100, "Hello, WORLD")); trace('is this working'); super.create(); } /** * Function that is called when this state is destroyed - you might want to * consider setting all objects this state uses to null to help garbage collection. */ override public function destroy():Void { super.destroy(); }
/** * Function that is called once every frame. */ override public function update():Void { super.update(); } }..
--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
---
You received this message because you are subscribed to the Google Groups "Haxe" group.
For more options, visit https://groups.google.com/d/optout.
BUILD SUCCESSFULTotal time: 11 secondsBuild succeededDone(0)haxelib run lime run "Project.xml" android -debugRunning process: C:\HaxeToolkit\haxe\haxelib.exe run lime run "Project.xml" android -debug/system/bin/sh: can't create C:\Users\user\AppData\Local\Temp/temp_1757805: No such file or directory
pkg: /data/local/tmp/FlixelTut-debug.apk
Success
2626 KB/s (5535735 bytes in 2.058s)Starting: Intent { act=android.intent.action.MAIN cmp=com.example.myapp/.MainActivity }
Done(0)
var f:TextFormat = new TextFormat(Assets.getFont("Assets/arial_0.ttf").fontName,30); var tf:TextField = new TextField(); tf.defaultTextFormat = f; tf.text = 'YOOOO WORKING'; tf.width = 400; addChild(tf);