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

Tags: Flex

Similar Questions

  • How to keep the Safari in full screen, when it opens instead of small rectangle I enlarge them with green button and how to keep the presentation of upper task bar without always having to lower

    How to open safari in its entirety in a small rectangle and then having to enlarge.  It started to happen.

    How to keep the top toolbar in view rather than having to lower whenever necessary

    Drag the bottom right and left corners of the window to enlarge it to fit the screen.

  • How to keep the main custom security Oracle ADF framework

    Hi guys, hope someone will help me.
    I am faced with the following question, I need to have a custom main instance after oracle adf security framework to authenticate and authorize the user.
    My custom main instance must have by adding attribute clientId say say. I use Jdeveloper 11.1.2.4 and I configure weblogic to use ReadOnlySQLAuthenticator (he did most of the features you want).
    As far as I understand, I would implement a custom provider to have a chance to implement a custom LoginModule, so I can put it up to use my custom entity, am I right? and I do not know how ReadOnlySQLAuthenticatorImpl I chose in weblogic is related to
    DBMSAtnLoginModuleImpl (I mean how is he knows what LoginModule it should use) and if I can, how can I do ReadOnlySQLAuthenticatorImpl use my custom LoginModule.
    Sorry if I violated the forum rules.

    Hello

    Yes, you must create a custom LoginModule, then create a WLS her authentication provider. Then, configure you the authentication provider customized with your WLS domain name and set the required flag 8Si authentication should be passed) or optional (if it does not need to be transmitted - for example if it does not authenticate itself, but that it only adds a main class)

    Frank

  • How to keep the Safari line at the top of my screen to disappear?

    How to keep the Safari line at the top of my screen to disappear?

    See the toolbar of Safari mode full screen?

    Launch Safari.

    Click on the Green navigation button to enter full screen mode.

    Move the mouse to the top of the screen.

    When the menu bar and the toolbar drop-down, click on 'View' in the menu bar of Safari.

    In the drop-down menu choose «Always see the toolbar in full screen»

  • How to keep the Macbook pro screen and cin on position?

    How to keep the Macbook pro screen and computer in position 'on '.  I don't want the computer shuts down or cut unless I ask him to...

    If you talk to keep your machine to fall asleep, take a look at the caffeine.

  • How to keep caps lock shift on screen without hitting the key? Thank you, Nick

    How to keep the caps lock indicator on screen without hitting the key each time to check its position? Thank you, Nick

    This indicator is provided by the keyboard device driver.  The driver included with the keyboards that Microsoft sells won't stay on the screen.  You can search your favorite search engine for "software keyboard indicator", there are some online that keeps the current keys shown in the taskbar near the clock.

  • How to keep the HTML text (i.e. Peragraph) according to the proportions?

    How to keep the HTML text (i.e. Peragraph) according to the proportions?

    Do not disturb (coming down / up) even a letter / word

    Do not disturb (coming down / up) even a letter / word

    Due to levels of zoom browser and personal user settings, there is no possible way to ensure an alignment of text on the web, unless you use images of the text.  Of course, this isn't an option because images of text cannot be indexed by search engines, screen readers or translators of language.

    Nancy O.

  • How to set the time that my screen stays on?

    How to set the time that my screen lights up.  I have an iPod Touch 6?

    Settings > general > auto-lock

  • I made my largest site and how can keep the same size for all other sites?

    I did the 2 larger site and how to keep the same size for all pages when I re - open the web browser?

    You can use an extension to set a page zoom and the size of the default font on the web pages.

  • How to keep the input value after click on the back button being the ADF

    Hi expert,

    I have a case currently the adf:

    1. I put 'value' in the Label 1

    2. I click on the next button

    3. I click on the "back" button

    4. the 'value' went from 1 label.

    How to keep the 'value' of 1 tag after I click back, do you have any suggestions?

    Kind regards

    Ricky

    Hello

    Where you store the value? Try to store it in a variable pageFlowScope or a property of the pageFlowScope bean.

    value = "#{pageFlowScope.testVar} '"

    value = "#{pageFlowScope.testBean.testVar} '"

    Kind regards

    Ruben.

  • Does anyone know how to keep the name of an image embebed in Illustrator v?

    Does anyone know how to keep the name of an image embebed in Illustrator v?

    Add the file name as a Note in the Panel. From a built-in file is just a raster image in GOT it, there is no links to follow.

  • How to keep the (update or delete, insert) triggering action in the table?

    Hello experts,
    I have create a trigger on update, delete or insert. I insert records into a table which records insert, update, or delete.
    I would also like to insert the revival of whick action the trigger as update, delete or insert.

    Here's my trigger code.

    create or replace trigger BOM_HISTORY_TRIGGER
    after update or delete or insert on BOM_HISTORY
    for each line
    Start

    insert into bom_history (BOM_MOD_CODE, BOM_ASSY_CODE, BOM_ASSY_QPS_old, BOM_ASSY_QPS, PPC_SRL_ #, ITEM_ENTR_BY,)
    ITEM_MOD_BY, MOD_DATE, ACTION)
    values(:Old.) BOM_DIV_CODE,: old. BOM_MOD_CODE,: old. BOM_ASSY_CODE,
    : old. BOM_ASSY_QPS,: new. BOM_ASSY_QPS,: old. PPC_SRL_ #,: old. ITEM_ENTR_BY,
    : old. ITEM_MOD_BY, SYSDATE, 'delete')
    END;

    HOW to keep the action in the table.

    also, there is error:
    WARNING: Trigger created with compilation errors.

    Please help to fix it.

    Thank you best regards n
    Yoann

    >
    insert into bom_history (BOM_MOD_CODE, BOM_ASSY_CODE, BOM_ASSY_QPS_old, BOM_ASSY_QPS, PPC_SRL_ #, ITEM_ENTR_BY,)
    ITEM_MOD_BY, MOD_DATE, ACTION)
    values(:Old.) BOM_DIV_CODE,: old. BOM_MOD_CODE,: old. BOM_ASSY_CODE,
    : old. BOM_ASSY_QPS,: new. BOM_ASSY_QPS,: old. PPC_SRL_ #,: old. ITEM_ENTR_BY,
    : old. ITEM_MOD_BY, SYSDATE, 'delete')
    >
    Unless I've counted wrong you have 9 mentioned columns but try insert 10 items.

  • How to keep the environment setting

    We need to set disable javascript.

    But,

    after update, it turns to activate.

    You please show me

    How to keep the environment-setting before and after the update of Adobe reader.

    Thank you

    JavaScript is enabled by default in the browsers. Turn off (disable) is a manual process, which must be done by the end user.

    JavaScript must be enabled in order to use the Adobe Download Manager.

    You can download the Installer http://get.adobe.com/reader/enterprise/ offline without having to activate javascript. But there IS NO Adobe Reader (or Adobe Updater) affecting control javascript in browsers, or disable it automatically afer a download.

  • How to keep the metadata after Correct camera distortion filter?

    Hello

    Anyone know how to keep the metadata information after you have used the Correct camera distortion filter?

    In other words:

    When I need to correct the photo with good camera distortion to the menu Filter option I can't keep the metadata to the final table.

    After correction, I cut the useful part with the rectangular selection tool, and then I chose the file, new, Image to the Clipboard.

    Either the format file that I choose to save the metadata information has disappeared.

    I tried to export the metadata from File, FileInfo, information, and then import the metadata (XMP file) but no result.

    Someone at - it an idea to solve this issue

    Thank you

    This is probably because your using the Clipboard that discards the data.

    Try to crop your photo and recording. You can always cancel the harvest after saving if you want to do something in the photo.

  • Export layers to files: how to keep the size of the canvas

    Hello

    I need to export hundreds of layers of PNG files.

    Unfortunately, the Script cultures on the edge of the layer for each file has different dimensions. How to keep the size of the canvas of the PSD in the exported files?

    Thanks for your help

    PS-Version: MacOS, CS 5.1

    trim to untick if this does not work then

    http://www.filesresidence.com/file/acf00llbo09pg# , try this version it can do what you want.

Maybe you are looking for