I have a Flash component that's just a library of compiled code with some exposed API calls. Normally we distribute this as a SWC or MXP, and it works just fine. Recently I had a client express interest in using my component, but they do all their development in MTASC only. MTASC doesn't support SWC files, so ss there a good way to send precompiled code that would work in MTASC? I'm not able to send them the original source code, but if there's some other method I'd appreciate it. I do have access to the source, so I can recompile it however necessary. Thanks!
how to distribute a Flash component for use with MTASC?
480 Views Asked by nerdabilly At
1
There are 1 best solutions below
Related Questions in COMPONENTS
- Impose component restriction to a series of parsys-CQ
- Calling controller action from action in component
- Setting controller property from inside a component
- ReactJS: jQuery like components built with Flux
- Make a Component of Android Project for use it inside another android project
- Export PCA components in r
- same name component and model in cakePhp?
- How to align component horizentally using bootstrap?
- Loading Panel with Image in jFrame: Component must be non-null
- Angular add attribute(directive) before directive compiled
- Preventing component creation - Delphi
- How to set the height of a polymer component to 100%
- Vaadin CountdownClock Add On. How to freeze CountdownClock component and/or the appearance of count down tex
- VHDL OR logic with 32 bit vector
- VHDL using two components from a second file
Related Questions in SWC
- Creating and Using a SWC File - Flash AS3
- How to Clean-up my SWC project
- instance class from swc inside a movieclip
- Warnings in Flex Builder
- Creating my own SWC file using Flex 4?
- How can I make a superclass that is available in Flex and Flash?
- Flex 4 - flexpaper help
- Can't access media assets in an SWC
- How to monkey patch or override a swc class in Flex?
- how to use swc file in flash builder project
- AS3 Library Incompatibilities
- Is it possible to bundle our template into one SWC?
- Some assets from SWC are not imported in Flash Builder
- Actionscript Mobile Project - x=0; y=0l is Not in the Upper Left Corner. Why?
- Large flex project, how can I convert my swc libraries to a RSL?
Related Questions in REDISTRIBUTABLE
- Redis issue with unique key
- Using redis pub-sub for key expiry
- Detecting the MSC_VER of a lib
- Can Visual C++ 2017 Redistributable package support the applications that use VC2015?
- How to detect if Visual C++ 2017 Redistributable is installed
- Redistributing the .NET framework and SQL Server Express
- How can I distribute msvr71.dll (microsoft visual c++ runtime dll)
- Standalone VS 2010 C++ Program
- Which VC++ redistributable package to choose (x86 or x64)?
- Redistributing Tools used by application (OSX, imageMagick, TWAIN - SANE)
- VS2010 Custom Tool / Add-in redistributable license
- Redistribute dll files
- Redistributable .net framework installer
- Crash course in 'redistributable binary for Mac, uses QT and some other libs' ?
- dotnetinstaller configuration to continue with MSI installation even if prerequisites fail
Related Questions in MTASC
- Migrating to Flex mxmlc from ActionScript 2 mtasc
- mtasc for Lion OSX?
- can't add a new function to String class via prototype in as2
- Importing classes in AS2 when compiling with MTASC
- Can any Flash compiler put scripts on multiple frames?
- Sleeping in action script 2 using getTimer() method
- Help with MTASC and SWFMill for CamCanvas
- Does the MTASC compiler also compile AS3
- AS2 - How to fix the error "Parse Unexpected" from FlashDevelop
- how to distribute a Flash component for use with MTASC?
- Flash AS2 Command Line compiler capablities
- Which Flash SWF compiler uses compiler directives?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I did find an answer, and I'm not 100% sure if this is exactly the process since I'm no longer at that job and don't have the computer/process in front of me anymore. It was a bit of a hack.
What it involved basically was unzipping the SWC file and getting a .swf and a bunch of .asi files out.
The .asi files are really just ActionScript files, but they contain intrinsic definitions, or just prototypes or footprints of whats actually there. The real meat of it is still in the .swf.
So you rename all those .asi files to .as and then put them into your MTASC classpath. Since they contain definitions, you shouldn't be getting any more "undefined variable" or "undefined function" errors at compile time. Now you just need to pull in the SWF, where the actual function bodies are defined, using loadMovie. once the loadMovie is complete, you should be able to use all of the functions.
The only caveat of course is that you have to wait for that SWF to load before calling of any of the functions from the SWC.
so step-by-step, it looks like this:
1.) unzip the SWC file. this can be done using WinZip or OS X terminal unzip command 2.) Rename .asi files to .as 3.) add new .as files to MTASC classpath 4.) add AS code to load the .swf in and make sure none of the SWC functions are called before the SWF is loaded 5.) compile
I'm pretty sure this is what we did, but i'm not in a spot to try it out right now.,
Hope this helps, let me know if you have any other questions and I'll see if I can help figure it out any more.