Falcon

From Noisebridge
(Difference between revisions)
Jump to: navigation, search
(Requirements)
(HelloWorld)
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

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); }

} }

Personal tools