PDA

View Full Version : Import mx.remoting problems


drainman
07-29-2005, 01:18 PM
i get this eror and i have no idea what to do:
**Error** Scene=Scene 1, layer=Actions, frame=1:Line 2: Syntax error.
import mx.remoting.Service;

all the time. i tried the tutorial here and it didnt work at all because the #include part (i think it has to do with im using as 2.0). i then changed the code to:

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

but then i get that error...

i tried the tutorial on flash-db.com and i got it to work properly in the end, but wen i do the same thing to the other tutorial here it didnt work.

the flas-db tutorial i had to take away the
#include "NetDebug.as"
and add the remoting components
then it worked as it should.
but the tutorial on this site is impossible to get working.....
anyone who know what the problem is??

thanks
/drain

drainman
07-29-2005, 01:20 PM
ps. i got flash mx 2004 pro and the newest amfphp and i dl:ed the remoting thingie yesterday so it should be up to date

csdstudio
08-09-2005, 05:30 AM
Should work. Did you import the Remoting classes from the Remoting library? Put those in your library.