bertnz
10-26-2004, 10:13 PM
hi all.
I have been using web services without issue for a while now. However I have always been calling them from a movieclip's scripts.
I now want to make things a bit tidier so I have created a class which will handle all web service calls.
Trouble is, as soon as I try and reference a WebService object from my class I get...
The class 'WebService' could not be loaded.
I have imported the correct namespace, and can reference other things such as mx.controls.Button fine. What gives?
I think I solved this before by draggin the WebServiceConnector component onto my stage and then deleting it. Of course you can't drag that on to a class file.
Anyone know a good tutorial which goes over how classes are managed, where they are found. When and what you have to put in your classpath etc.?
I have been using web services without issue for a while now. However I have always been calling them from a movieclip's scripts.
I now want to make things a bit tidier so I have created a class which will handle all web service calls.
Trouble is, as soon as I try and reference a WebService object from my class I get...
The class 'WebService' could not be loaded.
I have imported the correct namespace, and can reference other things such as mx.controls.Button fine. What gives?
I think I solved this before by draggin the WebServiceConnector component onto my stage and then deleting it. Of course you can't drag that on to a class file.
Anyone know a good tutorial which goes over how classes are managed, where they are found. When and what you have to put in your classpath etc.?