PDA

View Full Version : The class 'WebService' could not be loaded.


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.?

Xeef
10-26-2004, 10:59 PM
Hmmm i hope it's not totalybulshit what im let out of me now :

Hmmm Hmmmm

i had some similayr isue (i think) when i use the "collectionClass"
i had to put it to the library as you describe abowe drag to stage erease (in the FLA where you wana use the class)
and after it it still give mi error meseges when i was try to autoalign/checkForErrors
the code BUT it WORKED when compiled
(MM help talk about this and it's normal because the component is in the library of the FLA but when compiled BalBlaBla...)

bertnz
10-27-2004, 01:39 AM
Seems like it does work - just spurts out the error just the same.

Note to Macromedia. PLEASE fix this!

cheers

Royalrex
11-17-2004, 05:59 PM
Hi.

I had the same problem. But with classes I created on my own. Found a solution. Go to preferences AS2 Settings and add the path to where you have your classes stored. Solved my problem.

Rock on,
Royalrex