Mac OS 10.3.9
Flash 8環境でしか試していないのですがこんな現象に会いました。
複数回remotingでサービス関数をコールさせようとしても2回目以降connectしてくれないのです。


// サンプルコード
import mx.rpc.*;
import mx.remoting.*;
var CFCService:Service = new Service("http://***/flashservices/gateway", null, "flashComponent", null, null);
function helloWorld() {
var pc:PendingCall = CFCService.helloWorld(["a"]);
pc.responder = new RelayResponder(_root, "helloWorld_onResult", "helloWorld_onStatus");
}
c = 0;
function helloWorld_onResult(re:ResultEvent) {
if (c<=5) {
trace("hellow");
helloWorld();
}
c++;
}
function helloWorld_onStatus(fe:FaultEvent) {
trace("f"+fe.fault);
}
helloWorld();

このコードをオーサリング環境、swf単体でプレビューしても"hellow"が2回までしか返ってこないのです。
Winだと開発環境で問題なく"hellow"が5回返ってくるらしい。
むー、これにはチョット参りました。

こんな現象になったこと無かったので2、3日ずっと悩んでた・・・(oz
けど取りあえずブラウザ(ローカルファイル、サーバー)から確認するとバッチリ"hellow"が返ってきた。
けど開発環境でデバッグ出来ないのは正直イタイ。

これは直して欲しいですよ、Adobe(旧Macromedia)さん!!!

Comments
Post a comment









Remember personal info?