Falcon: Difference between revisions
Jump to navigation
Jump to search
Line 18: | Line 18: | ||
{ | { | ||
} | import flash.display.Sprite; | ||
</code> | import flash.text.TextField; | ||
public class HelloWorld extends Sprite | |||
{ | |||
public function HelloWorld() | |||
{ | |||
var txt:TextField = new TextField(); | |||
txt.text = "HelloWorld"; | |||
addChild(txt); | |||
} | |||
} | |||
}</code> |
Revision as of 20:30, 27 March 2013
Requirements
- Falcon (mxmlc) http://flex.apache.org/download-binaries.html
- Java Runtime (JRE) www.java.com/getjava/
Notes
- Insure Java /bin folder is in system environment path
- Manually set {playerglobalHome} to swc directory
HelloWorld
This is how to build a HelloWorld.
package
{
import flash.display.Sprite;
import flash.text.TextField;
public class HelloWorld extends Sprite
{
public function HelloWorld()
{
var txt:TextField = new TextField();
txt.text = "HelloWorld";
addChild(txt);
}
}
}