#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
jag57 - 08 May 2006 22:16 GMT
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.
ganzor - 10 May 2006 12:19 GMT
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