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

  • SEARCH
  • Home
  • 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 6551703
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:22:14+00:00 2026-05-25T12:22:14+00:00

I have two Flash Builder projects. Let’s call them MainWeb and MainAIR. MainWeb defines

  • 0

I have two Flash Builder projects. Let’s call them MainWeb and MainAIR.

MainWeb defines and includes all of the classes for my application including a runtime loaded module that interfaces with our web services. MainAIR’s Source Path references MainWeb/src and includes only two unique parts. The first file is of course the root MXML document. The other file overrides a compiled, runtime module defined in MainWeb called DataStreamer. DataStreamer interfaces with our web services for MainWeb and the alternate version of DataStreamer interfaces with the OS filesystem for MainAIR. This makes a very easy to maintain pair of projects and easy to build both the web version and the AIR version of my application.

It has worked well until I needed to add an instance of mx.controls.Image. Image references SWFLoader and loads resource/content swfs at runtime. Some of those resources have executable code, so I needed to do the following:

loaderContext = new LoaderContext();
loaderContext.allowLoadBytesCodeExecution = true;

This works well from MainAIR, but raises an error in MainWeb because of course allowLoadBytesCodeExecution is only available to AIR projects. So, I thought I could use the same technique I used with the runtime module and just define a new version of the class in MainAIR. This failed. FlashBuilder is compiling in MainWeb’s version of the class or Flash Player is instantiating MainWeb’s version. I can’t tell without decompiling the code.

How can I specify the order, which FlashBuilder should search for class definitions?

  • 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-05-25T12:22:14+00:00Added an answer on May 25, 2026 at 12:22 pm

    Interesting solution. Add another Source Path item to the list for MainAIR, and then move MainWeb/src item below the new one. For example, setting the Source Path list of MainAIR to the following resolved the problem:

    MainWeb/assets
    MainWeb/src
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say we have two flash objects on the same html page. I want
I have two classes, and want to include a static instance of one class
I have two flash movies, both seem to have the same embed/object params and
I have two noobish questions about Flash, Actionscript, Flex etc. 1) With these technologies
I have two flash movies fl_base and fl_top . fl_base contains ActionScript that pulls
I have two flash files (say screenOne.fla and gameA.fla). After importing the main symbol
I have two scene in my flash file , and I want to move
I have two applications. In one application the web browser control shows a flash
I have two applications written in Java that communicate with each other using XML
I have two arrays of animals (for example). $array = array( array( 'id' =>

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.