show( true );
swhx.Application.loop();
swhx.Application.cleanup();
}
public static function writeData( file : String, content : String )
{
var f = neko.io.File.write( file, true );
f.write( content );
f.close();
}
public static function readData( file : String )
{
var f = neko.io.File.read( file, false );
var d = f.readAll();
f.close();
return d;
}
}
Now, compile this as a Neko application file called app.n , then create another empty document and
enter the following:
import flash.Lib;
class UI extends flash.MovieClip
{
static var className : String = ???UI???;
static var register : Dynamic = flash.Lib.registerClass( className, UI );
static var receive_tf : flash.TextField;
static var send_tf : flash.TextField;
static var send_mc : flash.MovieClip;
static function main()
{
Lib.current.attachMovie( UI.className, ???ui???, 0 );
}
public function new()
{
send_tf = this.createTextField( ???send_tf???, 1, 10, 10, 150, 20 );
send_tf.border = true;
send_tf.type = ???input???;
receive_tf = this.
Pages:
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968