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 / March 2006



Tip: Looking for answers? Try searching our database.

Flash 8 Remoting Components

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
KevinRDS - 20 Sep 2005 19:40 GMT
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?
KevinRDS - 20 Sep 2005 19:50 GMT
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.
cosmits - 21 Sep 2005 09:03 GMT
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
clcarter - 20 Mar 2006 17:25 GMT
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.
clcarter - 20 Mar 2006 17:53 GMT
Hi again ..
I found my problem. I forgot to change from Actionscript 1.0 to Actionscript 2.0 in the Publish Settings dialogue.
Sorry for the bother!
cosmits - 21 Sep 2005 09:53 GMT
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 !!!
:)
juanjo75 - 07 Oct 2005 15:59 GMT
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.
 
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.