MTASC with Web Service and Remoting Classes

On the heels of the last post, another issue I ran into was with the remoting and web service classes. These are not included as external .as files at all, but are pulled into the swf in the swcs you put in your library. Thus, there is no way for mtasc to get at them.
The solution I came up with was to drag the remoting and web service swcs into a new fla, and publish it as a swf. Then I used ASV to decompile the swf. I then went to the ActionScripts tag and could see each class listed. Highlight each one and hit F12 to save it in the appropriate directory in your mx class path. Voila! Perfect compilation.

This entry was posted in Flash. Bookmark the permalink.

10 Responses to MTASC with Web Service and Remoting Classes

  1. So, you had to compile and then de-compile to get something workable for the MTASC? I can’t believe it! 😀
    Great job!

    It’s a shame Macromedia didn’t release the source for the WebService API.

  2. Keith Peters says:

    Yeah. Even though the classes are compiled into the swf, mtasc can’t see them when it is compiling. It needs the class files or intrinsics. It would be nice if MM at least released the intrinsic files for those classes.

  3. RL says:

    Did MTASC not like the intrinsic classes if you unzip the SWC’s and rename the .asi’s with .as’ with winrar/winzip and re-compile?

  4. Joan Garnet says:

    What about getting the “Source Code for Macromedia Flash Remoting for Flash MX 2004 ActionScript 2.0” package and compile MTASC?
    I haven’t tried, but it should work… (if not sure you just have to fix just a few lines of code).

  5. JesterXL says:

    You can get the AS2 classes here:

    http://www.macromedia.com/software/flashremoting/downloads/components/

    Scroll mid-way through the page; looking for AS2 zip.

  6. Keith Peters says:

    “You can get the AS2 classes here:…”

    NOW you tell me! 🙂

  7. Bruce Pomeroy says:

    I think, JesterXL, the source files you are talking about are for Flash Remoting. I don’t think Macromedia distribute the source for WebServices.

  8. He’s right, Remoting sources are available, but not WebServices. Instead of using ASV and pressing F12, you can use KineticFusion and it will save everything in .as files in the projects directory with all the right filenames. It takes five minutes to drop all of the components from the components panel on the stage (including yours!) pressing Ctrl+Enter, and then decompiling with KineticFusion. It’s probably again EULA but hey hey what can you do.

    In other news, if you search for _root in the uncompiled mx.* folder, you get ‘found 83 times’. _lockroot anyone 😉

  9. pim says:

    Actually you can download the source classes, and it works as expected 😉
    Good post here : http://www.flashant.org/index.php?p=66&c=1
    Enjoy +++

Comments are closed.