MouseEvent on handling FlexGlobals.topLevelApplication

Hey, I'd better manage MouseEvent on FlexGlobals.topLevelApplication, like this

FlexGlobals.topLevelApplication.addEventListener (MouseEvent.MOUSE_DOWN, evidenceOut)

It works fine, but when the modal dialog box is open, it is not triggered. It is perhaps characteristic, don't know. But y at - it an option for handling click anywhere on stage, when the modal dialog box is open?

Thank you

systemManager

Tags: Flex

Similar Questions

  • Cannot use FlexGlobals.topLevelApplication.addEventListener

    I had problems with application of the FlexGlobals.topLevelApplication.addEventListener method in Flash Builder Burrito.

    If I create a desktop AIR application, then I have no problem but I can't get this to work as a mobile project.

    I imported framework.swc and spark.swc in the project of the blackberry SDK folder - but addEventListener is not upward into the end of code topLevelApplication popup - and I get an cannot access a property or method of an object reference . null Error when I try to run the application

    package
    {
        import flash.display.Sprite;
        import flash.display.StageAlign;
        import flash.display.StageScaleMode;
        import flash.events.Event;
    
        import mx.core.FlexGlobals;
    
        import spark.components.Application;
    
        public class eNewTest extends Sprite
        {
            public function eNewTest()
            {
                super();
    
                // support autoOrients
                stage.align = StageAlign.TOP_LEFT;
                stage.scaleMode = StageScaleMode.NO_SCALE;
    
                FlexGlobals.topLevelApplication.addEventListener(Event.ENTER_FRAME, test);
            }
    
            public function test():void
            {
                trace ('doing something...');
            }
        }
    }
    

    Any thoughts would be appreciated. See you soon.

    If this does not work, you can add the listener to the 'step' of the object. There is only one step that all elements have in common.

  • FlexGlobals.topLevelApplication Gumbo data binding issues

    Hello

    What is the recommended way to bind a data source for a subitem to a collection that can be linked to the location of the top-level application.

    3, for this I would use {Application.application.instance_of_bindable_variable}, now I get a warning saying that the data binding will not be able to detect the assingments to {FlexGlobals.topLevelApplication.instance_of_bindable_variable}

    so, how to bind a data source for a subitem a variable instantiated at the Application level, in Flex 4?

    Thank you

    JED

    My bad, instead of Application, use the name of your application MainApp(FlexGlobals...). someProperty

    Alex Harui

    Flex SDK Developer

    Adobe Systems Inc..

    Blog: http://blogs.adobe.com/aharui

  • None of these variables: FlexGlobals

    Improved FlashBuilder with Flex 4.5 and I try to pass parameters in swf via the prescription to:

    http://help.Adobe.com/en_US/Flex/using/WS2db454920e96a9e51e63e3d11c0bf626ae-7feb.html

    Flex does not know this FlexGlobals is good.  I copy and paste the code example from the bottom of the page on the link above (in the section entitled "access to property flashVars").  The code seems to have appropriate namespace declarations and imports of the library.

    The compiler never complains.  But when I run it I only get some variables.  If I put a watch on FlexGlobals it says "no variable of that type.

    The point of the example is to see the variables passed into the SWF.  They do however.

    What could be wrong?

    I have used successfully FlexGlobals.topLevelApplication.parameters in Flex 4 before, but not this exact code.  You could potentially also try something like

    var app:Object = FlexGlobals.topLevelApplication

    and inspect its properties.

  • Pass the .swc variable to main application...

    Hello

    I'm trying to retrieve data from a compiled .swc that is loaded into the main application. I have a generic function as follows:

    public void onSubFormFinishClick(event:MouseEvent):void

    {

    var applicationCompletedVar:int = 1;

    trace ("Full Application =" + applicationCompletedVar);

    }

    ... which is executed when the user clicks on the button in the custom .swc. I want to be able to pass this parameter to the main application. Can someone provide examples of how to achieve this? Using external swf loading in a swf Flash, I have just shipped a new event and listen for this event and take action after hearing the past event. being new Flex, I don't know how to proceed.

    Thx for any help,

    ~ Chipleh

    Set the public variable in the main application for example,

    public var Valeurdonnees: String = "Hello";

    Assign the value to the dataValue component SWC file using FlexGlobals as:

    FlexGlobals.topLevelApplication.dataValue = 'Hello friend ';

    Now draw the value in the handler in the main application that handle the event dispatched from CFC. Gets the update of dataValue.

  • How to make the event bus work?

    I don't think I understand how the event bus. I have two ActionScript classes. An instance of the class can send the DataRefreshInvocationEvent event and causes a refresh. An instance of the other class dispatches the event even, and nothing happens.

    Class that can successfully send the DataRefreshInvocationEvent, EventManager, resembles the ChassisEventManager class in the example of chassis-ui. The class that doesn't distribute the event successfully is a regular ActionScript class extending EventDispatcher. The two classes have the same metadata for events before the class definition.

    [Event (name = "{com.vmware.core.events.DataRefreshInvocationEvent.EVENT_ID}",

    Type = "com. VMware.Core.Events.DataRefreshInvocationEvent")]

    DispatchEvent calls are from the regular ActionScript class.

    This expedition at the start of the regular-ActionScript class does not cause a refresh:

    dispatchEvent (new DataRefreshInvocationEvent (DataRefreshInvocationEvent.EVENT_ID));

    but when the same line is changed to exit the EventManager local refresh occurs:

    EventManager.instance.dispatchEvent (new DataRefreshInvocationEvent (DataRefreshInvocationEvent.EVENT_ID));

    I would like to understand what what should do see his message distributed a class for the event bus.

    Thanks for the help,

    -Darrell

    Hi Darrell,

    This part is not well documented...  Most of the AS classes in your user interface must be seen mediators and they are automatically registered with the platform when declared with the DefaultMediator tag in the source view mxml, as:

    [DefaultMediator ("com.vmware.samples.chassisui.views.ChassisSummaryViewMediator")]

    To handle large events to applications with a singleton Manager class, you can use this API (see ChassisEventManager.as):

    import com.vmware.core.events.ObjectEvent;

    ...

    Instance of registers to the platform. Required to support [EventHandler].

    FlexGlobals.topLevelApplication.dispatchEvent (ObjectEvent.newAddition (this));

  • Determine the orientation of a device

    Hi, I've seen tutorials on the internet where people use navigator.landscapeOrientation inside a resize handler, check the orientation of a device. Who does more then, how can I check the direction now?

    I need this work as soon as a view is created, for example from the creationComplete Manager. It should also work for iOS devices and iPad. Thanks for your help.

    Ignore this, the use of FlexGlobals.topLevelApplication.aspectRatio to find the guidance works very well.

  • Behavior of ComboBox?

    Hello

    I use Flash Builder 4.0.

    I'm confused about the behavior of the combobox when an item is deleted in the dataprovider.

    Here is the intervention of the user

    Step 1: The user has entered a name in the texfield

    Step 2: The user clicks on a button

    Step 3. Name is added to the ComboBox by using the ArrayCollection data provider collection (converter use element to display the button remove for each item)

    Step 4. Repeat steps above three times to fill three items in the combobox

    Step 5: Select the second element.

    Step 6: Open the drop-down list and deletes the first element

    Step 7: Now the selected item is the third point! ... not the second item that was selected in step 5.

    How the last item gets selected?

    I think that flex doesn't bother around which the article previously selected, it goes ahead and selects the index selected previously.

    I reason?

    If Yes, what is the work around?

    ______________________________

    Thanks for your time.

    Rabin.

    Here's the code for the 3 files I used for the prototype.

    Main application.mxml

    <? XML version = "1.0" encoding = "utf-8"? >

    " < = xmlns:fx s:Application ' http://ns.Adobe.com/MXML/2009 "

    xmlns:s = "library://ns.adobe.com/flex/spark".

    xmlns:MX = "library://ns.adobe.com/flex/mx" minWidth = "955" = "600" minHeight

    creationComplete = "application1_creationCompleteHandler (event)" >

    < fx:Script >

    <! [CDATA]

    How to import events. UserReportFilterDeleteEvent;

    Import mx.collections.ArrayCollection;

    Import mx.controls.Alert;

    Import mx.core.FlexGlobals;

    Import mx.events.FlexEvent;

    Import mx.utils.object_proxy;

    Import spark.events.IndexChangeEvent;

    [Bindable]

    private var ac:ArrayCollection = new ArrayCollection();

    private var previousObject:Object;

    protected function button1_clickHandler(event:MouseEvent):void

    {

    ac.addItem (ti.text);

    }

    protected function application1_creationCompleteHandler(event:FlexEvent):void

    {

    FlexGlobals.topLevelApplication.addEventListener (UserReportFilterDele teEvent.FILTER_DELETED, deletedHandler);

    }

    private void deletedHandler(e:UserReportFilterDeleteEvent):void

    {

    var object: = e.data;

    ac.removeItemAt (ac.getItemIndex (object));

    }

    []] >

    < / fx:Script >

    < s:layout >

    < s:HorizontalLayout / >

    < / s:layout >

    < s:TextInput id = "ti" / >

    < s:Button label = "Add" click = "button1_clickHandler (event)" / >

    < s:ComboBox id = "cb" dataProvider = "{ca}" itemRenderer = "converters. FilterRenderer"/ >

    < / s:Application >

    FilterRenderer.mxml

    <? XML version = "1.0" encoding = "utf-8"? >

    " < = xmlns:fx s:ItemRenderer ' http://ns.Adobe.com/MXML/2009 "

    xmlns:s = "library://ns.adobe.com/flex/spark".

    xmlns:MX = "library://ns.adobe.com/flex/mx".

    autoDrawBackground = "true" >

    < s:layout >

    < s:HorizontalLayout / >

    < / s:layout >

    < fx:Script >

    <! [CDATA]

    How to import events. UserReportFilterDeleteEvent;

    Import mx.core.FlexGlobals;

    protected function button1_mouseDownHandler(event:MouseEvent):void

    {

    var deleteEvent:UserReportFilterDeleteEvent = new UserReportFilterDeleteEvent(UserReportFilterDeleteEvent.FILTER_DELETED,data);

    FlexGlobals.topLevelApplication.dispatchEvent (deleteEvent);

    }

    []] >

    < / fx:Script >

    < s:Label text = '{data}' / >

    < s:Button label = 'X' width = mouseDown = "button1_mouseDownHandler (event)"28"" / >

    < / s:ItemRenderer >

    UserReportFilterDeleteEvent.as

    package events

    {

    import flash.events.Event;

    SerializableAttribute public class UserReportFilterDeleteEvent extends Event

    {

    public static const = "filterDeletedUserReportFilterDeleteEvent" FILTER_DELETED:String

    public var: data object;

    public void UserReportFilterDeleteEvent (type: String, object: data, bubbles: Boolean = true, cancelable: Boolean = false)

    {

    This.Data = data;

    Super (type, bubbles, cancelable);

    }

    override public function clone (): event

    {

    return new UserReportFilterDeleteEvent(UserReportFilterDeleteEvent.FILTER_DELETED,data,bubbles,cance lable);

    }

    }

    }



    I save the selectedItem before delete, use getItemIndex to find after the deletion, and then set selectedIndex.

  • A strange error!

    Hello

    I am working on an app that has 2 parts, a staff and a customer and I used in the same error again and again for over a week now.

    I've implemented a queue to hit and it works fine when the staff (which is the 'OWNER') connection information is hardcoded in the MXML.  However, the minute I try to incorporate external authentication in the app of the staff, which is all done in creationComplete() Manager, I get the following error:

    TypeError: Error #1009: Cannot access a property or method of a null object reference.
         at com.adobe.rtc.sharedManagers::RoomManager/set guestsHaveToKnock()
         at Staff_App/onCreationComplete()
         at Staff_App/___Staff_App_Application1_applicationComplete()
         at flash.events::EventDispatcher/dispatchEventFunction()
         at flash.events::EventDispatcher/dispatchEvent()
         at mx.core::UIComponent/dispatchEvent()
         at mx.managers::SystemManager/preloader_preloaderDoneHandler()
         at flash.events::EventDispatcher/dispatchEventFunction()
         at flash.events::EventDispatcher/dispatchEvent()
         at mx.preloaders::Preloader/displayClassCompleteHandler()
         at flash.events::EventDispatcher/dispatchEventFunction()
         at flash.events::EventDispatcher/dispatchEvent()
         at mx.preloaders::SparkDownloadProgressBar/initCompleteHandler()
         at flash.events::EventDispatcher/dispatchEventFunction()
         at flash.events::EventDispatcher/dispatchEvent()
         at mx.preloaders::Preloader/dispatchAppEndEvent()
         at mx.preloaders::Preloader/appCreationCompleteHandler()
         at flash.events::EventDispatcher/dispatchEventFunction()
         at flash.events::EventDispatcher/dispatchEvent()
         at mx.core::UIComponent/dispatchEvent()
         at mx.core::UIComponent/set initialized()
         at mx.managers::LayoutManager/doPhasedInstantiation()
         at mx.managers::LayoutManager/doPhasedInstantiationCallback()
    

    The error seems to be telling me that's not yet aware of the property called guestsHaveToKnock, which seems totally absurd!  Really, this raises the question of exactly when things (sessions, components, etc.) which are created in the code are ready to be used by the application.

    I tried to put all the code queue hitting inside a SYNCHRONIZATION_CHANGE event, but nothing helped.
    Here is the code for my creationComplete() function:

    private function onCreationComplete():void
    {
         roomURL = FlexGlobals.topLevelApplication.parameters["roomURL"];
         authToken = FlexGlobals.topLevelApplication.parameters["authToken"];
         cSession.login();
    
         cSession.addEventListener(SessionEvent.SYNCHRONIZATION_CHANGE, onSyncChange);               
    }
    
    private function onSyncChange(p_evt:SessionEvent):void
    {
         if (p_evt.type == SessionEvent.SYNCHRONIZATION_CHANGE) {
              if(cSession.isSynchronized)
              {
                 // Require that guests must knock.Note that this line changes the setting of your room so that in future anyone guest coming in
              // has to knock. You can change this setting again either from code by making roomManager.guestsHaveToKnock as false or from the DevConsole's manage tab
              cSession.roomManager.guestsHaveToKnock = true ;
                             
              // For owners that arrive late, the pending queue is populated with waiting users.
              if ( cSession.userManager.myUserRole == UserRoles.OWNER ) {
                      //  var pendingArray:Array = new Array();
                   var pendingArray:ArrayList = new ArrayList();
    
                      var queue:Array = cSession.roomManager.knockingQueue.pendingQueue ;
                for ( var i:int = 0 ; i < queue.length ; i++ ) {
                   var item:UserQueueItem = queue[i] as UserQueueItem ;
                   pendingArray.addItem({label:item.descriptor.displayName,descriptor:item.descriptor});
                      }
                      knockingList.dataProvider = pendingArray ;
                      cSession.roomManager.knockingQueue.addEventListener(UserQueueEvent.ITEM_UPDATE,onKnockingQueueUpdate);
                      cSession.roomManager.knockingQueue.roleForManaging =  UserRoles.PUBLISHER;
                addPods();
              }else {
                      //Else, remove all UI from seeing.
                      knockingUI.removeAllChildren() ;
                 }
              )
         }
    }
    

    I studied the documentation of the class and I'm getting a good handle of what where, but no matter what I do, I can't find a solution to this problem.  I had originally posted this in my "Queue to hit sample" thread, but I thought that maybe it failed because I had marked as "resolved".  I am literally pulling my hair and I can't move any further with this until I get this resolved.

    As always, I do appeciate you guys take the time to help.

    Matt

    Hello

    Answers for 1 & 2 below

    1.), citing an expert (Raff & Nikola) - external auth tokens last until the piece ends (or manually invalidate you the session). So basically you can use only once per room.

    2.) containers of session event creationComplete is good enough, as by that time, all the components of the CCA would have been initialized. An applicationComplete of applications is much safer as you said, but two of them will work very well, in my opinion - [for more information http://www.wietseveenstra.nl/blog/2007/02/understanding-the-flex-application-startup-event - command /]

    Thank you

    Arun

  • How to listen for the click to the button actionContent in view event

    Hello

    In doing so:

    FlexGlobals.topLevelApplication.addEventListener ('actionContentClick', showOptions);

    By calling showOptions() any time that the view had come out. Sticks of Manager and every time I get a view in the creationComplete for this turn I add the listener even over and over.

    How should this be done?

    1 FlexGlobals.topLevelApplication is the subject of the right to listen to?

    2. I can remove the listener on view turn off, but I don't know if that will be called whenever the view goes.

    3. check if an object already has an earpiece and who is he?

    Thank you.

    1 not sure; What exactly are you trying to do?

    2. Yes, every time you move to a separate view that will be dispatched to the VIEW_DEACTIVATE event. It would be a good place to remove the event listener.

    3. you can use hasEventListener(type:String) to test the presence of an event handler.

    -Tom Kraikit

    Flex SDK engineer

  • How to put a fx:component(native_window) into a separate file

    Hello, fans of flex

    I want to know how I can put the fx:component - tag in a separate file. Here is my code:

    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" 
                                xmlns:s="library://ns.adobe.com/flex/spark" 
                                xmlns:mx="library://ns.adobe.com/flex/mx">
         <fx:Script>
              <![CDATA[
                   import mx.controls.Alert;
                   import mx.events.FlexEvent;
                   
                   private var newWindow:MyNativeWindow;
                   public var house:String = "wooden house";
                   private static var _app:NativeWindow2;
         
                   private function openNewWindow():void {
                        if (newWindow != null) newWindow.close();
                        newWindow = new MyNativeWindow();
                        newWindow.width = 200;
                        newWindow.height = 200;                    
    
                        try 
                        {                         
                             newWindow.open();
                        } 
                        catch (err:Error) 
                        {               
                             trace(err.message);
                        }
                   }
    
                   
              ]]>
         </fx:Script>    
         
         <fx:Declarations>
              <fx:Component className="MyNativeWindow">
                   <mx:Window horizontalAlign="center" verticalAlign="middle" backgroundColor="blue">
                        <fx:Script>
                             <![CDATA[
                                  import mx.core.FlexGlobals;
                                  
                                  
                                  protected function button1_clickHandler(event:MouseEvent):void
                                  {
                                       import mx.core.FlexGlobals;
                                       
                                       trace(mx.core.FlexGlobals.topLevelApplication.house);
                                       
                                  }                              
                             ]]>
                        </fx:Script>
                        <mx:Button label="Yeah" click="button1_clickHandler(event)" />
                        <mx:Button label="close" click="this.close()"/>                    
                   </mx:Window>
              </fx:Component>    
         </fx:Declarations>     
         
         <s:VGroup horizontalCenter="0" top="10">
              <s:Button label="Open New Window" color="black" click="openNewWindow()"/>
         </s:VGroup>
    </s:WindowedApplication>
    

    What about the King

    flexx0r

    create new MXML component name MyNativeWindow

    and paste it in your code

    
    
    
         
              
         
         
         
    
    
    

    your application code would then become

    
    http://ns.adobe.com/mxml/2009"
                                xmlns:s="library://ns.adobe.com/flex/spark"
                                xmlns:mx="library://ns.adobe.com/flex/mx">
         
              
             
    
         
              
    
         
              
         
    
    
    
  • How to use a variable out of the nested &lt; fx:component &gt; tag?

    Hi flex community.

    I'm trying to reach the House of the label of the component variables. But I am still getting this error when I press the button:

    Error #1009: Cannot access a property or method of a null object reference.

    Here is my code:

    <? XML version = "1.0" encoding = "utf-8"? >
    " < = xmlns:fx s:WindowedApplication ' http://ns.Adobe.com/MXML/2009 "
    xmlns:s = "library://ns.adobe.com/flex/spark".
    xmlns:MX = "library://ns.adobe.com/flex/mx" >
    < fx:Script >
    <! [CDATA]

    private var newWindow:MyNativeWindow;
    public var home: String = "wooden house";

    private function openNewWindow (): void {}
    If (newWindow! = null) newWindow.close ();
    newWindow = new MyNativeWindow();
    newWindow.width = 200;
    newWindow.height = 200;

    Try
    {
    newWindow.open ();
    }
    catch (err: error)
    {
    trace (Err.message);
    }
    }

    []] >
    < / fx:Script >

    < fx:Declarations >
    < fx:Component className = "MyNativeWindow" >
    < mx:Window horizontalAlign = "center" verticalAlign = "middle" backgroundColor = "blue" >
    < fx:Script >
    <! [CDATA]
    protected function button1_clickHandler(event:MouseEvent):void
    {
    trace (outerDocument.House);
    }
    []] >
    < / fx:Script >
    < mx:Button label = "yes" click = "button1_clickHandler (event)" / > "
    < mx:Button label = "close" click = "this.close ()" / >
    < / mx:Window >
    < / fx:Component >
    < / fx:Declarations >

    < s:VGroup horizontalCenter = "0" top = "10" >
    < s:Button label = "open a new fenΩtre" color = "black" click = "openNewWindow ()" / >
    < / s:VGroup >
    < / s:WindowedApplication >

    Import mx.core.FlexGlobals;

    protected function button1_clickHandler(event:MouseEvent):void

    {

    trace (FlexGlobals.topLevelApplication.House);

    }

    now?

  • Create a link to a State... why the State lacks Ahh!

    Hello

    I spent 1/2 day, trying to get a button link to a State that seems to be missing the interaction > choose target > the Application menu.

    I hit the 20 State max limitation and I have to now use States within the custom/generic components... but now when I try to link to them with one button to another component this subreport is missing. Here is a diagram showing what I'm doing... and I have to hurt?

    Capture.JPG

    So... is the first question possible to link a button in a subreport to a subreport to another component. Subreport is perhaps not the right word... but I mean a State within a component.

    Any help is greatly appreiated. Thank you.

    Thank you

    Nick

    I suppose you want the buttons in the control panel (i) drop down to post a link to any other product in the following state information?

    Here are the basic things I did to make it work.

    In Flash Catalyst, I added an interaction to change the State of the main application of 'Room01Products' on (i). The rest changes to the project when done in Flash Builder.

    Once properly imported into Flash Builder, I open the Mani.mxml file, and then find the Room01Prodcuts component (Yes there is a typo in the name in, as I've never done this) I then gave this element an id attribute:

    Then, I open the Room01PanScrollingContentSkin.mxml file. It is located in the directory of the project components.

    In this file, we will find the event handler for the (i) that we added in Flash Catalyst.

    You should see the following line of code:

    mx.core.FlexGlobals.topLevelApplication.currentState = 'Room01Products';

    Add this line of code:

    mx.core.FlexGlobals.topLevelApplication.productInfo.currentState = 'Product28';

    You will see reference us the productinfo component in code and define its currentState to 'Product28' I had him show something else than the first State of the component. Now when you click on the (i), it will change the two States concerning the application and one for the component.

    Hope this helps,

    Chris

  • How to get the properties of application anywhere in the project?

    Hello

    Application

    | __Component1

    | ___Component2

    | ___Component3-> Component4 (in Popup)

    It is the actal scenario in my flex application...

    You know a better way to access the properties on the Application object?

    I want to put the popup component in the middle of the screen of the browser...

    for this, I tried the way...

    -Part 4

    <! - PopupWindow.mxml - >

    " < = xmlns:fx s:Group ' http://ns.Adobe.com/MXML/2009 "

    xmlns:s = "library://ns.adobe.com/flex/spark".

    xmlns:MX = "library://ns.adobe.com/flex/mx" >

    < s:layout >

    < s:VerticalLayout horizontalAlign = "center" verticalAlign = "middle" / >

    < / s:layout >

    < s:BorderContainer id = "bcPopupWindow" width = "700" height = "500" backgroundAlpha = "0.8" borderAlpha = "0.5".

    borderVisible = "true" cornerRadius = "20" dropShadowVisible = "true" >

    == Design part ==

    < / s:BorderContainer >

    < / s:Group >

    and to show that
    in tier 3.
    protected function btnShowPopup_clickHandler(event:MouseEvent):void
    {
    myPopup = new PopupWindow();
    myPopup.width = this.parent.parent.parent.width;
    myPopup.height = this.parent.parent.parent.height;
    PopUpManager.addPopUp (myPopup, this, true);
    }

    Hello

    to access the application (IE higher level) use (for example, width), Application.application.width (for flex 3) or FlexGlobals.topLevelApplication.width (for flex 4)

    PS: you can use PopupManager.centerPopup (myPopup) to Center

  • How to keep the preloader custom on-screen?

    In an AIR Flex4 application I customized the preloader with our own subclass of SparkDownloadProgressBar, and it appears, increments its progress bar and disappears when starting perfectly and everything as I expect.

    I want to do now is KEEP on the screen more long so that his progress bar may continue to show progress on the further initialization operations in our application and even, in some cases, manage the interaction of the user (login screen of thinking, etc.), then go away when we came, not at the time of the SystemManager decides to hide/close it.

    I see no obvious way to customize this behavior in the SystemManager and Preloader classes. How this is done?

    Thank you

    Greg

    Nevermind on the breakpoint, I just wanted to know if something was shipping manually this event through the application. It turns out it's just the usual initialized setter.

    Quickly, I've done it all works by doing this:

    In the main WindowedApplication:

    override public function set initialized(value:Boolean):void
    {
    If (value)
    {
    setVisible (true);
    }
    }
               
    public function set $initialized(value:Boolean):void
    {
    Super.Initialized = value;
    }

    My preloader custom only complete when I click it (in your case, maybe it ends after a few calls of communication over distance, etc?)

    override the initCompleteHandler(event:Event):void function
    {
               
    }

    private void clickHandler(event:MouseEvent):void
    {
    FlexGlobals.topLevelApplication. $initialized = true;
    dispatchEvent (new Event (Event.COMPLETE));
    }

    Not very neat but I'm not sure that there is a more pleasant way to do.

    Hope that works for your use case

Maybe you are looking for

  • Import of Aperture

    How can I get a copy of Maverics for again my opening to allow the importation? LAperture won't work if I had already downloaded El Capitan? I have to do something special to download Maverics or remove El Capitan? I use Aperture 3.5.1 on an iMac 27

  • BIOS update, no sound

    I downloaded the update to the bios of 2014. For awhile, it was fine. But after some use the laptop on the same day, I lost the sound on my computer. I use the video site youtube and when my computer loses sound, it makes the video stay at 0:00, or t

  • BlackBerry smartphones a few questions on the Torch 9800

    a friend recently gave me her old flame and I wiped it created a new BBID and deleted reinstalled BBM and it still does not work, I don't have a data plan but bbm should work on my home network. Another thing when adding an email, how do you find the

  • Group question Outlook of blackBerry Smartphones

    I have two groups of contact created in Outlook, one for my personal contacts and who is the public address book. After my "BOLD" with the BES synchronized, all my contacts appear in a group. If I go to the filter, I have the possibility of personal

  • No sound after loading Windows 8 on PC from HP g60-553NR

    The laptop has a built-in audio chip Conexant.  Everything worked with the Windows 7 driver, until I upgraded to Windows 8.  Now, no sound from speakers or headphones.  I have the latest driver from HP.  All available patches?