macromedia flash flash remoting:
I found the new Remoting components installer posted today (9/20/2005). I ran the install package several times, each time I got an error when trying to test an existing Flash Remoting project in Flash 8. Here is the latest: **Error** C:\Documents and Settings\Administrator\Local Settings\Application Data\Macromedia\Flash 8\en\Configuration\Classes\NetServices.as: Line 22: The class 'mx.remoting.NetServices' needs to be defined in a file whose relative path is 'mx\remoting\NetServices.as'. class mx.remoting.NetServices extends Object **Error** C:\Documents and Settings\Administrator\Local Settings\Application Data\Macromedia\Flash 8\en\Configuration\Classes\NetServices.as: Line 24: Error opening include file RemotingComponentVersion.as: File not found. #include "RemotingComponentVersion.as" Where do these files need to be? Looks like they were installed in the wrong place. Anybody have any ideas?
In looking at other posts, I found the solution. I was using: #include "NetServices.as" This was causing an error. I replaced it with: import mx.remoting.*; and now it works. Seems I was mixing Actionscript 1.0 with Actionscript 2.0 syntax.
Hi congands on the v8 components however - i still can't get it to work, I installed flash8 and the new v8 components twice from scratch making sure no remaining folders were there from previous installation restarted my machine and everything after this clean installation i used the import statement here is my code: /////--------------------------------////// ///---initializing Remoting---///// /////-------------------------------///// import mx.remoting.* if (inited == null || inited == undefined) { inited = true; NetServices.setDefaultGatewayUrl("http://localhost:8501/flashservices/gateway") ; gateway_conn = NetServices.createGatewayConnection(); myService = gateway_conn.getService("test.services.myManager", this); } myBut_btn.onRelease = function(){ myService.getAllRecords("testTable"); } //////////////////////////////////////////////////////////////////////////////// /////////// it's not giving any errors on the output panel instead - it's nonresponsive nothing shows on the NetConnection Debugger and nothing comes back from the server I checked my service CFC and my datasource in the CF admin all working just fine in flash MX 2004, but not in 8 PLease Help !!!! :( thanks Yariv
Got it !!! I was missing the initialise line !! import mx.remoting.* mx.remoting.debug.NetDebug.initialize(); cheers to all God shave the queen I'm on the role again !!!
Please, please note one significant change... I was recently opening my FLA's done previously in Flash MX 2004 in Flash 8, and went to make the changes posted by cosmits, and they did not make my FLA's work. So make a new copy of your files done in Flash 7, open them all and save them as FLA's in Flash 8. You can still keep your SWF's to be published in Flash 7. ( File / Publish Settings / click Flash Tab/ and select Flash 7 ). Now everything should work.
Hi Everyone, I have diligently read these posts. I downloaded and installed the remoting components for Flash 8 on OS X. I have the sample from the Macromedia. I resaved the file to a Flash 8 version. I have changed the includes to -- import mx.remoting.*; but all I get is a syntax error! -- **Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 1: Syntax error. import mx.remoting.*; I'm sure I'm overlooking something, are there any ideas what's going on here? All help is gratefully appreciated.
Hi again .. I found my problem. I forgot to change from Actionscript 1.0 to Actionscript 2.0 in the Publish Settings dialogue.
Don't see what you're looking for? Try a search.
|