Hello!
Well, I just started a critical part of my flash application development - I?m
implementing the sections of the site using a MVC (Model View Controller)
approach based on the Essential ActionScript 2 explanation and code. My site
has a album section which opens albuns of pictures in the server and shows them
to the user trough graphic components. The communication is done via Flash
Remoting and AMFPHP in the server-side. My AlbumModel.as class needs to use the
remoting classes to get the data from the server, process it and pass to the
view. But when I try to compile it, it says it can?t load the
"mx.remoting.Services" or any of the remoting classes - and actually there
isn?t any .as files in the mx.remoting directory.
I know that within a .fla file, I need to make sure the RemotingClasses SWC
are in the library... but what to do in a pure .as class file? Should I make it
into a component?
Thanks in advance,
Marcelo.
LuigiL - 30 Jun 2005 08:34 GMT
>> and actually there isn?t any .as files in the mx.remoting directory <<
Did you install remoting for AS 2.0 or for AS 1.0?
JoeBazz - 30 Jun 2005 15:29 GMT
Yep... that was the first thing I did... and actually remoting works ... the
only problem is that I can?t find any as files.. it only comes in the swc
compiled thing...
I even tried to reinstall the two packages (fr for as1 and fr for as2 for
mx2004) but the problem stills.
Thank you for the reply.
LuigiL - 30 Jun 2005 16:38 GMT
In your download of the Remoting Components there should be a dir 'source'
which contains the classes. You need to install these classes manually (see the
usageSource.txt that also comes with the download).