all groups > macromedia flash flash remoting > june 2004 >
You're in the

macromedia flash flash remoting

group:

onStatus not a method?



Re: onStatus not a method? Tom Muck
6/24/2004 5:53:53 PM
macromedia flash flash remoting:
[quoted text, click to view]

Check the documentation for the new remoting components (included in the
help system after installing). The syntax has changed.

Tom


onStatus not a method? JerkyRobot
6/24/2004 9:17:03 PM
I have downloaded the flash components and the trial version of FlashRemoting;
yet, when I try to use the "onStatus" method, and go to compile it says that it
does not recognize "onStatus". what gives?
Re: onStatus not a method? Hi_C
6/24/2004 9:41:28 PM
can you post some code? also, what version of flash are you using?

Re: onStatus not a method? JerkyRobot
6/24/2004 9:50:18 PM
Im using Flash Player 7 and actionscript 2.0. I am using the actionscript 2.0
Flash Remoting Components download, I updated to Flash MX 2004 ver 7.0.1.

MY CODE:

this.onStatus = function(myError){
results_txt.text = myError.description;
}
//this.getMethod = this.caller.methodName;
// Set the system status to be handled by the result status handler as well
System.onStatus = this.onStatus;

COMPILER MESSAGE:

**Error** Scene=Scene 1, layer=actionscript, frame=1:Line 21: There is no
property with the name 'onStatus'.
System.onStatus = this.onStatus;
Re: onStatus not a method? mama
6/27/2004 11:13:06 AM
JerkyRobot a écrit :
[quoted text, click to view]

Hi Jerky,

it's a bug, System.onStatus, Macromedia miss to define in the System.as
file.
Just change your code from:

System.onStatus=function () {...}

to:

_global.System.onStatus=function () {...}

--
Cordialement,
Mathieu

<http://www.yamago.net> Mathieu ANTHOINE / mama
Flash Development - Game Design
yamago.net - (33 1) 53 17 01 85
AddThis Social Bookmark Button