3 Replies Latest reply on Jul 19, 2006 4:25 PM by blemmo

    Error from NetServices.as

    Level 7
      When I publish my flash it gives me these errors.

      I am new to flash and action script so please be kind...:-)

      This all seems to stem from a simple include and the beginning of my action
      script.

      #include "NetServices.as"

      I am just using a sample out of a book by Macromedia Press. Please help if
      you can???

      Rick


      **Error** D:\WebSites\Sample\cgi-bin\testing\NetServices.as: Line 8: Syntax
      error.
      import mx.remoting.Connection;

      **Error** D:\WebSites\Sample\cgi-bin\testing\NetServices.as: Line 9: Syntax
      error.
      import mx.services.Log;

      **Error** D:\WebSites\Sample\cgi-bin\testing\NetServices.as: Line 22: Syntax
      error.
      class mx.remoting.NetServices extends Object

      **Error** D:\WebSites\Sample\cgi-bin\testing\NetServices.as: Line 24: Error
      opening include file RemotingComponentVersion.as: File not found.
      #include "RemotingComponentVersion.as"

      **Error** D:\WebSites\Sample\cgi-bin\testing\NetServices.as: Line 34: Syntax
      error.
      public static function setDefaultGatewayUrl(url:String):Void

      **Error** D:\WebSites\Sample\cgi-bin\testing\NetServices.as: Line 48: Syntax
      error.
      public static function setGatewayUrl(url:String):Void

      **Error** D:\WebSites\Sample\cgi-bin\testing\NetServices.as: Line 67: Syntax
      error.
      public static function createGatewayConnection(url:String,
      infoLogger:Log):Connection

      **Error** D:\WebSites\Sample\cgi-bin\testing\NetServices.as: Line 109:
      Syntax error.
      public static function getConnection( uri:String ):Connection {

      **Error** D:\WebSites\Sample\cgi-bin\testing\NetServices.as: Line 123:
      Syntax error.
      public static function getHostUrl():String

      **Error** D:\WebSites\Sample\cgi-bin\testing\NetServices.as: Line 149:
      Syntax error.
      public static function isHttpUrl(url:String):Boolean {

      **Error** D:\WebSites\Sample\cgi-bin\testing\NetServices.as: Line 152:
      Unexpected '}' encountered
      }

      Total ActionScript Errors: 11 Rorted Errors: 11