onStatus call only works with global 2004-03-03 - By Collin Peters
Back 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)
|
|