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 6198949
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T04:06:09+00:00 2026-05-24T04:06:09+00:00

I have a main Flex Application (‘A.swf’) loading a SubApplication (defined in’ B.swf’) via

  • 0

I have a main Flex Application (‘A.swf’) loading a SubApplication (defined in’ B.swf’) via a SWFLoader and I need to listen for UncaughtErrorEvent from the SubApplication. I’m not able to get my event listeners to be called when I throw an error from within the SubApp (‘B.swf’).

After reading the asDoc for UncaughtErrorEvent and UncaughtErrorEvents I have added an event listener to A.swf’s loaderInfo (The ‘outter’ main app) and also to B.swf’s loaderInfo (though the Docs say not to do it here it is part of the event sequence in the capture and bubble phase…) as well as the SWFLoader internal FlexLoader.uncaughtErrorEvent (per Docs) like so:

swfLoader.content.loaderInfo.loader.uncaughtErrorEvents.addEventListener(UncaughtErrorEvent.UNCAUGHT_ERROR, uncaughtErrorFunction );  

The event listener setup on the Loader.uncaughtErrorEvents is not firing when SubApplication in B.swf throws an error. Instead the listener on the main app’s (A.swf) loaderInfo fires. Moreover, the event recieved by A.swf’s loaderInfo has an eventphase equal to ‘EventPhase.AT_TARGET’ which the asDoc says should only be dispatched in the capture and bubble phases.

Am I not doing this correctly? Any thoughts or suggestions?

‘A.swf’ and ‘B.swf’ both compiled with Flex SDK 4.1, Flash Player 10.1. Browser is FireFox running Flash debug player 10.3

Thanks!

  • 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-24T04:06:10+00:00Added an answer on May 24, 2026 at 4:06 am

    I found that setting the SDK libraries to merge into the code for both A.swf and B.swf allows the UnCaughtErrorEvents to dispatch in the correct way.

    It doesn’t dispatch when using MX based Flex Applications with the SDK libraries linked via Shared Runtime Libraries (the default in Flash Builder).

    Moreover, it will also work with pure SPARK Flex Applications with RSL or merged into code.

    See the discussion here: http://forums.adobe.com/message/3835326

    Submitted Flex Bug here: http://bugs.adobe.com/jira/browse/SDK-30996
    For examples see attachments on submitted bug.

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

Sidebar

Related Questions

I have a page-like flex application. In my main application is a holder (a
I have a main form and as sub form. I need the main Form
I have an application where I have a main.m that returns NSApplicationMain(argc, (const char
I have a Canvas in a Flex application which has items inside it that
I have a flex application that repeatedly polls a remote XML file to detect
I have a Flex application which references a separate MXML file as a template
I have a Flex application that seems larger than it should be. There is
I am trying my first flex application. And have a problems adding data from
Please enlighten this flex noob. I have a remoteobject within my main.mxml. I can
I'm trying to build a Flex application and have a question regarding directory structure.

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.