Falcon: Difference between revisions
Jump to navigation
Jump to search
| (6 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
== Projects == | |||
[[Pp]] | |||
== Requirements == | == Requirements == | ||
Falcon (mxmlc) http://flex.apache.org/download-binaries.html | *Falcon (mxmlc) http://flex.apache.org/download-binaries.html | ||
Java Runtime (JRE) www.java.com/getjava/ | *Java Runtime (JRE) www.java.com/getjava/ | ||
Notes | |||
*Insure Java /bin folder is in system environment path | |||
*Manually set {playerglobalHome} to swc directory | |||
== HelloWorld == | == HelloWorld == | ||
| Line 16: | Line 16: | ||
This is how to build a HelloWorld. | This is how to build a HelloWorld. | ||
< | <pre> | ||
package | 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); | |||
} | |||
} | |||
} | } | ||
</ | </pre> | ||
Latest revision as of 13:29, 29 March 2013
Projects
[edit | edit source]Requirements
[edit | edit source]- 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
[edit | edit source]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);
}
}
}