Mailing List
Home
Forum Home
Flash Pro
Subjects
Firework Effect
setInterval bug identified and fixed
setInterval bug identified and fixed
ScrollPane component doesn 't auto update
Help: MX 2004 How to script a print button to print the entire sli
Event Dispatcher between classes
memory management removeMovieClip /
MX2004 Dataset itemClassName
Order of events per frame
XML to Object help
Textfield prototype question
Flash and QuickTime VR
Reading and displaying RSS feeds in Flash MX
Flash MX 2004 Sucks
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash Interface with 10mb xml file
Web Service Results
Listener Object 's best practice
 
onStatus call only works with global

onStatus call only works with global

2004-03-03       - By Collin Peters

 Back
Reply:     1     2     3     4     5     6     7     8     9     10     >>  

I am unable to get the onStatus responder event to fire.  I have the
Flash Remoting Internals book and it states that it first looks for a
function called methodName_Status, second it looks for an onStatus
function in a responder object, third it checks the root level for
onStatus(), fourth, looks for _global.System.onStatus.

The onResult() function works just fine, but have only been able to get
the _global status function to fire.  I have duplicated every example
and can't figure it out.  I'm using Flash 2004 (with the updated
remoting components);

1.

function runSQL_Status() {
  trace("status1");
}
_global.System.onStatus = function() {
  trace("global");
}
NetServices.setDefaultGatewayUrl(myURL);
var connection = NetServices.createGatewayConnection();
var service = connection.getService(servicePath, this);
service.runSQL("SELECT * FROM levels);

2.
var secondResult = new Object();
secondResult.onResult = function(result_rs) {trace("result2");}
secondResult.onStatus = function(status) {trace("status2");}
NetServices.setDefaultGatewayUrl(myURL);
var connection = NetServices.createGatewayConnection();
var service = connection.getService(servicePath);
service.runSQL(secondResult, "SELECT * FROM levels);


Any ideas as to what I'm doing wrong?

Regards,
Collin Peters

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
Supported by Fig Leaf Software
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
Lower Prices for Certified Training! Check out new lower prices for
Certified Macromedia Training from Fig Leaf Software. Expand your
skill set with courses in ColdFusion, Flash, Rich Internet
Applications and .NET in the new year.  Fig Leaf Software provides
the highest caliber instruction at our training centers in Washington  
D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at
your location.

Get the details at http://training.figleaf.com/
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: flashcomm-unsubscribe@(protected)
For additional commands, e-mail: flashcomm-help@(protected)