Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Remoting / February 2005



Tip: Looking for answers? Try searching our database.

The Result event function stops working when inserted in a button event

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
SmileyBlue - 21 Feb 2005 14:11 GMT
im kinda new to Remoting mx and i have a problem
the function that gets the result object stops working when i enter the script
into a button event....
even the 'trace'  stops working.
but the connection still works and the CFM page returns recordset
and when i put the same script on the first frame of the movie it works just
fine and the function get invoked

//works fine
import mx.remoting.Service;
import mx.services.Log;
import mx.rpc.RelayResponder;
import mx.rpc.FaultEvent;
import mx.rpc.ResultEvent;
import mx.remoting.PendingCall;
import mx.remoting.RecordSet;
var getList:Service = new Service("http://localhost/flashservices/gateway",
new Log(), "RemotingService.DBconn", null, null);
    var pc : PendingCall = getList.getRecord(_root.keyword_txt.text);
    pc.responder = new RelayResponder(this, "getRecordResult", "getRecordFault");
    function getRecordResult(re:ResultEvent):Void {
        DataGlue.bindFormatStrings(list, re.result, "#NAME#,#TITLE#");
    }
    function getRecordFault(fa:FaultEvent) {
    }

//dosnt work and even the trace inside the function is not invoked
on (click) {
import mx.remoting.Service;
import mx.services.Log;
import mx.rpc.RelayResponder;
import mx.rpc.FaultEvent;
import mx.rpc.ResultEvent;
import mx.remoting.PendingCall;
import mx.remoting.RecordSet;
    var getList:Service = new Service("http://localhost/flashservices/gateway",
new Log(), "RemotingService.DBconn", null, null);
    var pc : PendingCall = getList.getRecord(_root.keyword_txt.text);
    pc.responder = new RelayResponder(this, "getRecordResult", "getRecordFault");

    //this function is not invoked
                       function getRecordResult(re:ResultEvent):Void {
        DataGlue.bindFormatStrings(_root.list, re.result, "#name#,#title#");
                                           trace("test");
    }
    function getRecordFault(fa:FaultEvent) {
    }
}
SmileyBlue - 21 Feb 2005 17:01 GMT
just one update
the issue is not in buttons...the issue in components
whenever i use a component the responder object dosnt work inside!!!!!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.