これはおそらく初歩的な質問ですが、私は Flash と AS3 を初めて使用するので、ここで説明します...
どうにかして AS3 NetConnection を再利用できますか?
接続を処理する AMFPHP クラスを作成しようとしているので、AMFPHP メソッドを呼び出したいときはいつでもその初期接続を再利用できます。
これまでの私のコードは次のとおりです。
package com.utils
{
public class amfphp
{
private var gateway:String = "http://localhost/amfphp/gateway.php";
private var connection:NetConnection = new NetConnection;
private function con(gate:String, con:NetConnection):void {
//connect to the gateway file
con.connect(gate);
return con;
}
}
}
事前にサンクス!