Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Remoting / June 2004



Tip: Looking for answers? Try searching our database.

mx.remoting.Service == class not loaded

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JohnMathis - 23 Jun 2004 16:59 GMT
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
Keith Dodd - 23 Jun 2004 17:41 GMT
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
JohnMathis - 23 Jun 2004 17:49 GMT
No...I've not gotten anywhere.  Anyone else seeing this?

John
silkpuppet - 23 Jun 2004 18:42 GMT
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
> Remoting. Drag the RemotingClasses compiled clip into your library.

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.
Keith Dodd - 23 Jun 2004 19:15 GMT
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
silkpuppet - 23 Jun 2004 19:25 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.