トップへ戻るニュースフォーラムFLASH-ML 過去ログBak@Flaダウンロードよくある質問と答
ログイン
ユーザ名:

パスワード:


パスワード紛失

新規登録
メインメニュー
メイン
   コーダーズルーム【スクリプト系】
     RemotingConnector接続エラーについて
投稿するにはまず登録を

フラット表示 前のトピック | 次のトピック
投稿者 スレッド
knagai
Åê¹ÆNo.24233
投稿日時: 2006-3-9 0:35
職人
居住地: 白馬村
投稿: 796
使用環境:
Re: RemotingConnector接続エラーについて
まだやってます。
下記をプレビューすると、
----
Triggering myRemConn Now...
Error opening URL "http://localhost:8500/flashservices/gatewa"
Error opening URL "http://localhost:8500/flashservices/gatewa"
undefined
----
が出力されます。
"gateway"と正しく入れると、接続します。
RemotingConnectorコンポーネントはステージに置いただけで
何も入力しません。コードであてがいます。
これではだめですかね?



import mx.data.components.RemotingConnector;
import mx.remoting.Connection;
var conn:Connection = new Connection();
var url:String = "http://localhost:8500/flashservices/gatewa";
conn.connect(url);
conn.onStatus = function(info) {
	trace(info);
};
tS = conn.getService("サービス名", this);
tS.メソッド名();
//
// Setup Event Handlers for myRemConn
// Set Connector Properties
myRemConn_rc.addEventListener("result", re_Result);
myRemConn_rc.addEventListener("status", fa_Status);
myRemConn_rc.gatewayUrl = url;
myRemConn_rc.methodName = "メソッド名";
myRemConn_rc.serviceName = "サービス名";
myRemConn_rc.suppressInvalidCalls = true;
// Trigger Connector
trace("Triggering myRemConn Now...");
myRemConn_rc.trigger();
function re_Result(ev:Object) {
	trace("Got Categories - "+ev.target.results.length);
	/*for (var str in conn) {
	trace(str+" str:"+conn[str]);
	}*/
}
function fa_Status(stat:Object) {
	trace("Categories Error - "+stat.code+" -  "+stat.data.faultstring);
}




----------------
永井勝則:
himco.jp :

フラット表示 前のトピック | 次のトピック

題名 投稿者 日時
   RemotingConnector接続エラーについて lancer 2006-2-27 12:25
     Re: RemotingConnector接続エラーについて newborn 2006-2-27 13:34
       Re: RemotingConnector接続エラーについて lancer 2006-2-27 14:27
         Re: RemotingConnector接続エラーについて newborn 2006-2-27 14:52
           Re: RemotingConnector接続エラーについて lancer 2006-2-27 18:08
             Re: RemotingConnector接続エラーについて knagai 2006-3-3 19:09
               Re: RemotingConnector接続エラーについて lancer 2006-3-6 14:02
                 Re: RemotingConnector接続エラーについて lancer 2006-3-6 20:05
     Re: RemotingConnector接続エラーについて lancer 2006-3-6 22:13
       Re: RemotingConnector接続エラーについて knagai 2006-3-7 23:17
         Re: RemotingConnector接続エラーについて lancer 2006-3-8 10:29
           Re: RemotingConnector接続エラーについて knagai 2006-3-8 12:58
             Re: RemotingConnector接続エラーについて lancer 2006-3-8 20:09
             » Re: RemotingConnector接続エラーについて knagai 2006-3-9 0:35
                 Re: RemotingConnector接続エラーについて lancer 2006-3-9 9:51

投稿するにはまず登録を
 
Copyright (C) 2003 FLASH-japan. All rights reserved.
Powered by Xoops