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

macromedia flash flash remoting

group:

mx.remoting.Service == class not loaded


mx.remoting.Service == class not loaded JohnMathis
6/23/2004 3:59:13 PM
macromedia flash flash remoting:
I'm trying a simple remoting example.

I have:
import mx.remoting.Service;
[...]
private var _Service:Service;

I get a compile error on the var line above:
"...The class 'Service' could not be loaded.
private var _Service:Service;"

Also, I have no .as files in the ...Classes/mx/remoting folder. Should I find
a "Service.as" there?

Thanks!

John
Re: mx.remoting.Service == class not loaded Keith Dodd
6/23/2004 4:41:06 PM
John

Have you gotten anything/anywhere on this? I've been trying all day to figure
it out!
I get same as you when try to create the as file.

Yesterday, when working directly in fla, the help tutorial said to drag the
classes from Common Libraries onto the stage. When I did that, all worked fine.
But, these don't seem to be available using the import method in the as file.
Like you, I don't see these in the remoting folder.

If you get any info before someone replies here, would appreciate knowing.
Thanks

Keith Dodd
keith@wingserv.com
Re: mx.remoting.Service == class not loaded JohnMathis
6/23/2004 4:49:30 PM
No...I've not gotten anywhere. Anyone else seeing this?

Re: mx.remoting.Service == class not loaded silkpuppet
6/23/2004 5:42:09 PM
You can download the source files (.as files) here:


http://download.macromedia.com/pub/flashremoting/mx2004/components/actionscript_
2.0/flashremoting_comp_sourcecode.zip

Alternatively, in Flash you can open: Window > Other Panels > Common Libraries
[quoted text, click to view]

I also had to clear out the the .aso files.

FYI: The documentation is pretty good, check it out. Dragging the libraries
into your .fla file (as above) is covered in:

Using Flash Remoting MX 2004 > Getting Started > Building Flash Applications
with Flash Remoting > Using Flash Remoting , then click on "To conect to a
service by writing ActionScript code:"

~j.
Re: mx.remoting.Service == class not loaded Keith Dodd
6/23/2004 6:15:08 PM
Thanks, that did it!
I had seen that download, but the information just said it was available to
give users a better understanding of the functionality of remoting...nothing
said about maybe being necessary for import!
However, after extracting this zip into: the [Flash MX] \en\First Run\classes
folder, all compiled ok.

What/where are the .aso files? MM's info also says to clear those. I couldn't
find any on a search.

Maybe MM's tutorial will add something about need for these source files; as
it's not mentioned...at least as far as I've gotten.

thanks
Keith
Re: mx.remoting.Service == class not loaded silkpuppet
6/23/2004 6:25:38 PM
You really don't need the source files -- they are only necessary if you want
to see the source code to understand how things work under the surface.
Dragging in the compiled RemotingClasses from the common library should also do
the trick. Either one will get rid of those --class not found-- errors.

If you're not getting any errors, you probably don't need to worry about
deleting the .aso files. If you had previously used the old "AS2" remoting
components, you would have some compiled .aso files you would need to clear out
because flash would just look at those rather than compiling the new ones --
producing all kinds of errors, because the classes have changed significantly.

The location of the .aso files depends on your OS. They are in your personal
directory (regardless of OS), not in the regular Macromedia directory. Try
doing a search from the root of your drive for "*.aso" .

~j
AddThis Social Bookmark Button