Getting Remoting running in MTASC

Posted on Sunday 15 January 2006

MM's Flash 8 Remoting classes for Flash 8 don't compile as is in MTASC; you can patch them in a straightforward manner as described here. Getting the NetConnection debugger running properly is a major pain. In an effort to make things as simple as possible for MTASC Remoting users, here is a step by step guide on how to get the whole thing running. Many thanks to the guy at swapdepths.nl, Sönke Rohde and people Nikolay Nedev for this info.

The steps:

  1. Download the AS2 Remoting components for Flash 8 from Macromedia. Install.
  2. Download the source for the AS2 Remoting components.
  3. The AS2 Remoting components install their classes either at C:\Document and Settings{user}\Local Settings\Application Data\Macromedia\Flash {version}{language code}\Configuration\Classes or under OSX at /Users/{username}/Library/Application Support/Macromedia/Flash {version}/{language}/Configuration/Classes. For future reference, call this folder 'classpath'.
  4. Take everything in the source zip under mx.remoting.debug and copy to classpath\mx\remoting\debug. For some reason the installer installs full classes under mx.remoting but just intrinsics in mx.remoting.debug. Weird.
  5. Patching time. Open classpath\mx\remoting\NetServicesProxy.as, make the following changes:

    • line 60: change client into this.client
    • line 72: change serviceName into this.servicename
    • line 73: change nc into this.nc on both the nc.call and the argument
  6. Open classpath\mx\remoting\RecordSet.as. Go to line 404 and change return into return null

  7. Open classpath\mx\remoting\debug\GlobalLocalConnection.as. Change var suc:Boolean = true; to var suc = true on line 93.
  8. Open classpath\mx\remoting\debug\commands\GetConfig.as. Replace class with the following:

class mx.remoting.debug.commands.GetConfig extends Local {
   
    function GetConfig()
    {
        super();
    }
   
    function GetConfigCommand()    {
        init("getConfig", null);
    }
}
 

From now on, use -cp classpath to use the Remoting components. Don't include the RemotingClasses or RemotingDebugClasses in the library if using both the IDE and MTASC. Don't use -mx. If you need to use v2 components, apply patch file here.


WordPress database error: [Can't open file: 'wp_comments.MYD'. (errno: 145)]
SELECT * FROM wp_comments WHERE comment_post_ID = '174' AND comment_approved = '1' ORDER BY comment_date

No comments have been added to this post yet.

Leave a comment




Your e-mail address is never displayed. If you run into issues with SpamKarma blocking you, email me at $patrick->5etdemi(com)


RSS feed for comments on this post | TrackBack URI