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?
482 Views Asked by nerdabilly At
1
There are 1 best solutions below
Related Questions in COMPONENTS
- React deploying as blank screen, in locally works fine
- How to pass a Blazor Component Instance to other Component and render it?
- How to pass the result of a computed property to another component in Vue
- Example on defining "New Components" compatible with the new Optimization class using Linopy
- double form in shacn with error in inputs
- How to make an animation happen everytime I click on a div that has the animation?
- Smarty - Best way to create reusable components
- Is there any library available same like notion select in React JS?
- difference between vuejs local registration syntax
- Add and remove dynamic component Angular
- Is it possible to define paginator if its inside ngIf?
- burger-menu bug with react (flickering)
- app.routes won't recognize my component in Angular
- Model attributes in the custom component controller of accelerator - How this is handled in the context of OCC and Spartacus?
- Import angular components by string name
Related Questions in SWC
- Migrate from Babel to Nextjs SWC encountering Minified React error
- Instagram-like CSS class names obfuscation for NextJS 14 with SWC
- Why is Next.js trying to load @next/swc-linux-arm64-gnu despite .babelrc being present?
- swc-loader not showing typescript errors in console
- Cargo install swc_cli not working with error
- After installing SWC in NestJS with Typescript ttshivers/automapper is not mapping
- Failed to Load SWC Binary Error in Next.js Development Server
- How to resolve path error in compilation?
- Make Next.js 13 application run in old browser like Chrome 33
- Issue with Transpiling Packages in a Turborepo Project with Nest + SWC + pnpm (SyntaxError: Unexpected token 'export')
- Expression expected in index.js after switching to swc-loader
- Cannot find module '../../../../lib/esm/index.js'
- How Next.js support ESM and the building process?
- Nest JS and Typescript with SWC is not compiling dist folder correctly
- How to override the CSS default properties of Material UI on React?
Related Questions in REDISTRIBUTABLE
- How do I fix the error "'microsoft.ace.oledb.12.0' provider is not registered on the local machine." In Visual Studio 2022
- What redistributable are need for my program?
- C# Project - How to use two third-party DLLs with conflicting redistributable dependencies
- How to find redistributable is needed?
- c++ refencing MSVCP140.dll vs MSVCP140d.dll
- How to set the required version of C++ redistributables
- SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER converting XLS to TXT
- What is the best way to ship a private copy of C-runtime along with a windows application
- What is the difference between microsoft access redistributable and runtime?
- WMQ MFT - Redistributable Agent
- Why are there multiple copies of the same C++ .dll's on my computer?
- Install Visual C++ Redistributables 2005 while setup install
- dotnetinstaller configuration to continue with MSI installation even if prerequisites fail
- Cannot install wireshark : error 1625 occurres while installing Visual C++ Redistributable
- Why a DLL built with VS 2017 is asking for 'Visual Studio 2010 Redistributable Package' when using it?
Related Questions in MTASC
- AS2 - How to fix the error "Parse Unexpected" from FlashDevelop
- Sleeping in action script 2 using getTimer() method
- Importing classes in AS2 when compiling with MTASC
- mtasc for Lion OSX?
- Migrating to Flex mxmlc from ActionScript 2 mtasc
- Help with MTASC and SWFMill for CamCanvas
- Does the MTASC compiler also compile AS3
- can't add a new function to String class via prototype in as2
- how to distribute a Flash component for use with MTASC?
- Can any Flash compiler put scripts on multiple frames?
- Which Flash SWF compiler uses compiler directives?
- Flash AS2 Command Line compiler capablities
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.