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