Falcon

From Noisebridge
(Difference between revisions)
Jump to: navigation, search
(Requirements)
(Projects)
 
(4 intermediate revisions by one user not shown)
Line 1: Line 1:
 +
== Projects ==
  
 +
[[Pp]]
  
 
== Requirements ==
 
== Requirements ==
Line 6: Line 8:
 
*Java Runtime (JRE) www.java.com/getjava/
 
*Java Runtime (JRE) www.java.com/getjava/
  
*Notes
+
Notes
**Insure Java /bin folder is in system environment path
+
*Insure Java /bin folder is in system environment path
**Manually set {playerglobalHome} to swc directory
+
*Manually set {playerglobalHome} to swc directory
  
 
== HelloWorld ==
 
== HelloWorld ==
Line 14: Line 16:
 
This is how to build a HelloWorld.
 
This is how to build a HelloWorld.
  
<code>
+
<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);
 +
}
 +
 +
}
 
}
 
}
</code>
+
</pre>

Latest revision as of 13:29, 29 March 2013

[edit] Projects

Pp

[edit] Requirements

Notes

  • Insure Java /bin folder is in system environment path
  • Manually set {playerglobalHome} to swc directory

[edit] 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