Groups | Blog | Home
all groups > macromedia flash flash remoting > january 2005 >

macromedia flash flash remoting : Can't import classes in Flash Remoting for Flash MX 2004 ActionScript 2.0


Kodde
1/7/2005 4:17:04 PM
I've problems importing the classes that come with Flash Remoting for Flash MX
2004 ActionScript 2.0. I've installed it properly but when I run for example
the following code:
import mx.remoting.Connect;
var con1:Connection = new Connection();

I get this message:
class 'mx.remoting.Connect' could not be loaded.
import mx.remoting.Connect;

Am I missing something? I can't import any of the classes included in the
package.
I'm using Flash MX 2004 version 7.2
Would appreciate some help.

-Koddie

hungryhoss
1/8/2005 5:07:58 PM
I'm having the same problems. The docs supply an example with these imports

import mx.remoting.Service;
import mx.services.Log;
import mx.rpc.RelayResponder;
import mx.rpc.FaultEvent;
import mx.rpc.ResultEvent;
import mx.remoting.PendingCall;
import mx.remoting.RecordSet;

Examining my C:\Program Files\Macromedia\Flash MX 2004\en\First Run\Classes\mx
directory I don't see an rpc package and my remoting package only contains a
debug package but not any classes.

Come to think of it I don't see a services package either, which is strange as
I thought mx.log, for example, was a standard class for FMX 2004 Pro.

Any ideas?
hungryhoss
1/9/2005 4:36:23 PM
Problem solved.

There are two Remoting installers: one includes the components in compiled
form, the other one the source.

The regular installer is w/o the source. the compiled Remoting components are
in the common libraries (Windows>Other Panels>Common Libraries). You'll need to
open the Remoting Library and drag them to your library.

Or get the source components from

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

Many thanks to Andreas Heim and Chafic Kazoun for their help in resolving this.

Hoss.
AddThis Social Bookmark Button