all groups > macromedia flash flash remoting > may 2006 >
You're in the

macromedia flash flash remoting

group:

#include "NetServices.as",#include "NetDebug.as" problem


#include "NetServices.as",#include "NetDebug.as" problem chayanvinayak
5/8/2006 9:30:06 AM
macromedia flash flash remoting:
#include "NetServices.as",#include "NetDebug.as" problem


--------------------------------------------------------------------------------

#include "NetServices.as"
#include "NetDebug.as"
when i try to include these two files and publish in

Actionscript2: it gives following error:

C:\Program Files\EasyPHP1-8\www\hello\hello\NetServices.as: Line 22: Classes
may only be defined in external ActionScript 2.0 class scripts.
class mx.remoting.NetServices extends Object

**Error** C:\Program Files\EasyPHP1-8\www\hello\hello\NetServices.as: Line 24:
Error opening include file RemotingComponentVersion.as: File not found.
#include "RemotingComponentVersion.as"

**Error** C:\Program Files\EasyPHP1-8\www\hello\hello\NetDebug.as: Line 10:
Classes may only be defined in external ActionScript 2.0 class scripts.
intrinsic class mx.remoting.debug.NetDebug extends Object

Total ActionScript Errors: 3 Reported Errors: 3


and when i publish in ActionScript1 :it gives following 11 errors



**Error** C:\Program Files\EasyPHP1-8\www\hello\hello\NetServices.as: Line 8:
Syntax error.
import mx.remoting.Connection;

**Error** C:\Program Files\EasyPHP1-8\www\hello\hello\NetServices.as: Line 9:
Syntax error.
import mx.services.Log;

**Error** C:\Program Files\EasyPHP1-8\www\hello\hello\NetServices.as: Line 22:
Syntax error.
class mx.remoting.NetServices extends Object

**Error** C:\Program Files\EasyPHP1-8\www\hello\hello\NetServices.as: Line 24:
Error opening include file RemotingComponentVersion.as: File not found.
#include "RemotingComponentVersion.as"

**Error** C:\Program Files\EasyPHP1-8\www\hello\hello\NetServices.as: Line 34:
Syntax error.
public static function setDefaultGatewayUrl(url:String):Void

**Error** C:\Program Files\EasyPHP1-8\www\hello\hello\NetServices.as: Line 48:
Syntax error.
public static function setGatewayUrl(url:String):Void

**Error** C:\Program Files\EasyPHP1-8\www\hello\hello\NetServices.as: Line 67:
Syntax error.
public static function createGatewayConnection(url:String,
infoLogger:Log):Connection

**Error** C:\Program Files\EasyPHP1-8\www\hello\hello\NetServices.as: Line
109: Syntax error.
public static function getConnection( uri:String ):Connection {

**Error** C:\Program Files\EasyPHP1-8\www\hello\hello\NetServices.as: Line
123: Syntax error.
public static function getHostUrl():String

**Error** C:\Program Files\EasyPHP1-8\www\hello\hello\NetServices.as: Line
149: Syntax error.
public static function isHttpUrl(url:String):Boolean {

**Error** C:\Program Files\EasyPHP1-8\www\hello\hello\NetServices.as: Line
152: Unexpected '}' encountered
}

Total ActionScript Errors: 11 Reported Errors: 11
Re: #include "NetServices.as",#include "NetDebug.as" problem jag57
5/8/2006 9:16:12 PM
Hi, #include "NetServices.as",#include "NetDebug.as" is deprecated now. Go
into flash help, open the "Using Flash Remoting MX 2004" book. Then open
Getting Started>Building Flash applications with Flash Remoting>Using Flash
Remoting. There you will find instructions on using the new way.
Re: #include "NetServices.as",#include "NetDebug.as" problem ganzor
5/10/2006 11:19:53 AM
I asked the same question today - Please disregard my question. Please direct
me to a good tutorial that applies current Flash Remoting standards. I sure
would love to see this stuff work!

Thanks,
G
AddThis Social Bookmark Button