Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8414783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T01:15:15+00:00 2026-06-10T01:15:15+00:00

With Alchemy most builds are static swc builds. These are great for linking directly

  • 0

With Alchemy most builds are static swc builds. These are great for linking directly against a library, but if you try to use more than one at a time, you usually (always?) run into problems with the shared memory space. One solution I’ve read about is to build swf’s instead and load those dynamically into their own ApplicationDomain. This would give all libraries their own memory and would allow you to load multiple Alchemy libraries. (As mentioned in these threads on the adobe forums: http://forums.adobe.com/message/3665801 and http://forums.adobe.com/message/3927791)

My question is: how do I load these swf’s and get to the code inside of them? There doesn’t seem to be any documentation on this issue and although I do know how to load an swf, I don’t know how to get to the code because I don’t have any interface to the swf.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T01:15:16+00:00Added an answer on June 10, 2026 at 1:15 am

    The problem is that we want to dynamically load the Alchemy lib, but if we build the library as a SWF it won’t work (as that makes a standalone app). But we can’t dynamically load a SWC– or can we?

    Here’s what to do (assuming a library named mylib):

    1. Build mylib as a SWC.
    2. Unzip mylib.swc and extract the library.swf file; rename it to mylib.swf
    3. Embed mylib.swf as a binary asset
    4. At runtime, instantiate the asset as a ByteArray
    5. Pass the asset ByteArray to Loader#loadBytes
    6. When the loader fires COMPLETE, use Loader#contentLoaderInfo to get the ApplicationDomain of the loaded SWF
    7. Use ApplicationDomain#getDefinition to look up the Alchemy initializer class. e.g., cmodule.mylib.CLibInit
    8. Use the initializer like you normally would. e.g., call init, etc.
    9. …profit!

    You can embed an arbitrary number of Alchemy libraries this way, each running in its own ApplicationDomain.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Flex's Alchemy library to generate SWC's out of C files. I
I am trying to use Elixir with Flask. Reason being using SQL Alchemy directly
I am learning how to use cygwin for alchemy. I created a test library
I've gone over the Alchemy quick start guide and exported my stringecho.swc successfully, but
I'm porting a cross-platform lib I use to Alchemy. One particular file has a
I'm rusty in SQL and completely new to SQL Alchemy , but have an
I'm using the Alchemy API in app engine so I'm using the simplejson library
I am using sql alchemy in my project, I used db session, engine =
Specifically, Python is unable to find SQL Alchemy. Running easy_install does not help, as
Is it possible to develop iphone apps with java? I'd prefer to use alchemo

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.