Results 1 to 2 of 2

Thread: popup/tooltip loaded inside module gets application context insead of module context

  1. #1
    Join Date
    Aug 2010
    Posts
    1

    Default popup/tooltip loaded inside module gets application context insead of module context

    Hello,

    I am trying to show a tooltip inside a module (SASModule) and
    it is getting the application's context instead of the module's context.
    I believe the reason for this is that the tooltip's parent document is Application.
    I believe this would be true for a popup as well.

    Because it is getting the Application's Context, the application context stageprocessor tries to wire the tooltip's dependencies and in that process it fails because it cannot load the class definition. To fix this issue, I had to load the module in the same domain as that of the application.

    How can I associate the module's context with the tooltip?

  2. #2
    Join Date
    Dec 2008
    Location
    Brussels
    Posts
    407

    Default hmm

    That is indeed a very interesting edge case...
    For regular popups you can define the parent of the popup like this:

    Code:
    PopUpManager.addPopUp(myPopup, myModule);
    so you'd still need to implement some kind of custom system that will associate certain popups with a module, but that shouldn't be too hard.

    As for the tooltips, I'm not sure how you'd be able to intercept their creation. To be honest, I never had thought of a scenario where a tooltip would be needed to be injected.

    Maybe anybody else on the list is a Flex guru that can shed some light on this particular problem?

    cheers,

    Roland

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •