In Redtamarin v0.4.2 we introduced Program.start().
package
{
// all the imports and syntax completion use redtamarin definitions
import C.unistd.*;
// do not extends Sprite
public class Main
{
public function Main()
{
trace( "hello world" );
trace( "hostname: " + gethostname() );
}
}
}
/* Note:
you need to create the entry point
eg. tell the runtime which class you want run
*/
import shell.Program;
Program.start( "Main" ); // entry point
can not find the api start inthe Program
In Redtamarin v0.4.2 we introduced Program.start().