Mobile: How to keep splashscreen visible until app is fully loaded

Hello!
I´ve been struggling with this for a few days, and I cannot find any way to do it.. Maybe someone know how to do it!
In a mobile application you can specify a splashscreen. Mine is a SWF instead of multiple resolution static images, just to add some "life" to it. There´s also this property that allow us to keep the splashscreen visible through a given number of seconds.
<components:TabbedViewNavigatorApplication
                    splashScreenImage="@Embed('assets/images/splash.swf')"
                    splashScreenScaleMode="stretch"
                    splashScreenMinimumDisplayTime="5000">
Well, this is quite interesting and works ok, but I´m looking for a more specific funcionality, because the "splashScreenMinimumDisplayTime" some times is too long and some times is not enough... What I would like is to keep the splashscreen visible, until some initialize actions are totally complete (in this case, it means downloading a remote XML file and converting it to XMLLists). Then, hide the splashscreen programatically. I think it would be great to be able to manage this behaviour.
There must a way to override some methods of the splashscreen to do this, but I couldn´t find too much info about it... Please, someone just give me any clue to start searching on!
Thanks in advance

I got this workaround to show the splashscreen indefinitely until we hide it in runtime:
1- A custom SplashScreen class is needed. We cannot create one that extends from the original one (located at "frameworks/projects/mobilecomponentes/src/spark/preloaders/SplashScreen.as"), because some changes must be made in a pair of private methods. So, copy the whole file into a "CustomSplashScreen.as" (changing package path and the class name in its declaration and its constructor method).
2- Set the new CustomSplashScreen class as the default preloader in main MXML:
<components:TabbedViewNavigatorApplication
               preloader="CustomSplashScreen"
               splashScreenImage="@Embed('assets/images/splash.swf')"
               splashScreenScaleMode="stretch"
               splashScreenMinimumDisplayTime="5000">
3- Back in our CustomSplashScreen class, we declare a new static variable.
static public var DISPLAY_TIME:Number = 1000;       // in ms
4- This variable will have initially the same value as the minimumDisplayTime property. To do this, we modify the "prepareSplashScreen()" method, adding the bold part:
private function prepareSplashScreen():void
     if ("splashScreenMinimumDisplayTime" in info)
          DISPLAY_TIME = this.minimumDisplayTime = info["splashScreenMinimumDisplayTime"];
5- Then modify the "initCompleteEnterFrameHandler()" method to check if both times were reached (again add the bold line):
private function initCompleteEnterFrameHandler(event:Event):void
     if (currentDisplayTime <= minimumDisplayTime
     && DISPLAY_TIME > 0)
          return;
     dispatchComplete();
6- Finally, we must reset this new variable somewhere to hide the splashscreen. For example, after the creation_completeHandler actions are done:
CustomSplashScreen.DISPLAY_TIME = 0;
P.D. The code above works, but I would really like to do this without creating a new class with the same contents, but extending from the original SplashScreen class. Maybe someone could fix my solution with a better approach.

Similar Messages

  • Satellite Pro M40: screen stays dark untill Windows has fully loaded

    Hello to all on here.
    I have a problem with my laptop. My laptop is a Satellite Pro M40.
    When I turn on my laptop I have found the back light will not come on... the screen will stay dark untill it has fully loaded into Windows. I have checked all of my power options and there all fine. Even if I can get to the Bios screen its impossible to read the txt due to no backlight. I have tried holding the Fn & F7.. noy joy.
    Does anyone have any ideas?
    Richard

    Hello Richard
    I didnt see something like that before and I am little bit confused why you can not see BIOS settings but running OS. Usage of FN+F7 key combination will not help because this option works just under Windows and not under DOS level.
    If possible try to connect external monitor and test it again. Anyway I dont believe that you can fix it on your own. Try please to contact Toshiba authorized service partner in your country. Explain the situation and you will see what they will say.
    If you find out something please let us know. It will be really interesting to know why this happen.

  • GP: How to keep action  sleeping until ABAP function module raises event

    Hello experts,
    I'd like to develop a gp process which contains a callable objects which keeps the process instance waiting until an abap function module send something like an event.
    I don't want to put too much load on the machine and block expensive JCO ressources.
    Does anyone have an idea how to solve this?
    Thanks very much
    Stefan

    Hi Mike,
    GREAT! Many thanks! Sometimes solutions may be so simple.
    For all others who have the same problem a bit more in detail:
    In your FM just enter as exception: CX_BO_ACTION_CANCELLED and mark 'Exceptn. Classes'.
    Declare your class method with the exception cx_bo_action_cancelled.
    In your class method just enter your FM via the 'Pattern'-Button.
    The Pattern will show only the Import- and Export-Parameters but not the exception (class).
    Regards,
    Georg

  • How to keep iPad and iPod apps sync separate if you are using the same PC for backups

    Syncing the iPad and iPod using the same PC syncs the apps between the devices. How an Thisbe avoided I don't want to use the same apps in all my devices.

    No problem.  The computer's iTunes keeps track by serial number.  The human keeps track by a unique name for each one.  In my case, the iPad is cleverly named "George's iPad" while the iPod is equally cleverly named "George's iPod."

  • How to keep mail unread until later

    On my iPhone I need to peruse email and then reply either then and for other emails I need to gather information before I can reply. How can I mark my emails as unread?

    Hi there,
    I have the similar problem and I was hoping that a solution has been derived by now.
    Actually, already using iPhone, recently switched from PC to iMac and have a small issue with Mail that whenever I open any emails on my iPhone it marks the same email on iMac as "Read" and vice versa.
    I need to keep emails on both devices as "UNREAD" until I open the email on that particular device. I do not want to automatically mark (sync) the email on iMac which I open on iPhone and vice versa.
    Any help appreciated!
    Cheers!

  • How tro Keep Video Podcast Until I Want to Delete It?

    I once had my podcast set to delete after I watched the episode, but I now have a video podcast on my 3d gen Nano and other podcasts that I do not want to be removed until I do it manually. I don't remember how I set this up originally, and would appreciate any help in telling me how to automatically download new episodes but keep them (even after they'be been watched) until I decide to delete them myself. Thanks!

    If the podcast doesn't appear in iTunes, is there another place where it can be seen in order to delete it?  I'm having the same problem with my iPod Touch.  I don't see the podcast in either the left drop-down list or in the list under the podcast tab where you can sync selected items (but I do see more recently downloaded podcasts in both locations and I can delete them).  The podcast I want to delete is still on my iPod, but that's the only place where I can see it.

  • How to keep downloaded Yosemite Installer App

    RE: Create a bootable installer for OS X Mavericks or Yosemite - Apple Support (support.apple.com/en-us/HT201372) last modified 2/12/15
    Related to the 3 steps beginning with  'Download the OS X Installer app from MAS', my experience (after  many attempts trying different things, including using terminal command, but was unsuccessful with that as well ... I have done this easily with Mavericks so I am somewhat familiar the process, as well) is that the downloaded Yosemite Installer proceeds immediately form installation to bootup, and there is no opportunity to 'grab' the install app before the installer deletes.  Like moving it to Utilities folder or renaming it.  Seems that with Mavericks, you would get booted in, and the installer would leave the App alone, until the first time you use the installer to install on another volume,  at which time the file gets deleted unless you have previously moved or renamed it. Would appreciate your thoughts. Probably me overlooking something, but have run out of ideas.
    Running MBP mid-2012 with 10.10.2

    Thanks for your reply. Sorry for not responding sooner.  Nothing I tried worked, so finally (duh) contacted Apple tech support who provided these steps:
    (1) Bootup from internal startup volume (I had been booting up from external drive, and Apple tech support said no-no)
    (2) App Store>Purchases>Download OS X Yosemite (i.e., full OS X installer dmg file)
    (3) Logged in as Admin, use Terminal command line:
    sudo /Applications/Install\ OS\ X\ Yosemite.app/Contents/Resources/createinstallmedia --volume /Volumes/Install\ OS\ X\ Yosemite --applicationpath /Applications/Install\ OS\ X\ Yosemite.app
    [where ‘volume’ and ‘applicationpath’ obviously must correspond to any changes to name/location of the downloaded dmg file.
    (4) As I remember, took maybe 45-60 minutes to complete creating the bootable installer on thumb drive (needs to be at least 8 GB).

  • How to keep old versions of apps before updating

    I may want to retain the old version of some of my apps. On my Mac whenever I download updates to software, I always keep the installers for the old versions, just in case. However on iOS, when you download an update, it unceremoniously erases your old version, which has caused me to lose data in some cases!
    I noticed that in iTunes, "Transfer Purchases" moves the current .IPA files to your Mac. I've also noticed that when you "Transfer Purchases" again, the new versions replace the old versions, which get moved into the Trash (but not fully deleted yet). I've started keeping folders of old versions of apps. You can then manually put those older versions back into the proper folder and resync them to the iPhone if you liked the old version better
    I wish the iOS let you roll back to the old version of the app, in case the new version breaks something (like Time Machine for iOS). I think I'm going to write a letter to Apple

    That is correct Dancingjewel.  Migrating/transferring/copying Adobe applications is not supported and often leads to unexpected behavior.  To resolve this you will want to attempt to completely remove the current installations utilizing the CC Cleaner Tool and then reinstall.  If you need a fresh copy of the installation files they are available at Other downloads.

  • File Adapter -- Picking has to wait untill it get fully loaded/write.

    Hi All,
    I need to pick the files from a folder and I need to pick the files only which has been written completely.
    I should not pick the file in the middle while writing, I need to wait untill it finishes the writing completely.
    Is there any setting I can put in Sender File adapter to do this?
    Thanks
    Seema

    Nithya,
    >> Try to increase the processing time in the sender communication channel, so that it allows you to completely load the file. Check the time which is needed to upload the file to the directory manually and correspondingly change the processing time.
    We do not know exactly at what time the file will be placed in the folder. It may be at any time. So I cannot put the processing time accurately.
    Aamir,
    >> If you are picking from FTP,MSecs wont work there.the sender program which writes the file must write the file in some temporary format like .dat etc and once the file is complete it should change the filename to .txt,configure the sender file adapter to pick only *.txt files.
    This is a good idea. But I don't think I can ask them to change at the other end as it is working previously with other middleware.
    Guys,
    Can you please advice which is the best thing we can do at this point of time.?
    Thanks
    Seema.

  • Deactivate a button until date is fully loaded

    HI,
    Can anyone help me in checking whether the data is completely loaded in a jsp page. In my application I have to disable a button till a list is completely loaded but I'm not getting how to check for data load.
    Help is greatly appreciated.
    Thanks,
    Sri

    When you write JSP, it compiles into a web page before it is served to the client. Therefore, there are only two possible situations:
    1) The data is loaded to your jsp before you serve the page, in which case, the button can't possibly be active, because the page isn't served (i.e. the data is available to you when you construct the page, and you embed that data into the jsp, instead of letting the client load it from elsewhere.
    2) The data is loaded by the client after you serve the page, in which case, controlling the behavior of the button must be done on the client side (unless you're doing something like ajax). Therefore, you won't be using Java to do it. You'll want to look into what various forms of dynamic HTML can do for you (i.e. javascript, or active x).
    - Adam

  • G575 Screen/boo​ting problem - black screen on monitor until windows is fully loaded

    Hi
    I have searched online but can't find a similar thread. My laptop went blue the other day (as all pcs/laptops seem to do eventually) and I unplugged the power and rebooted.
    The problem I have had since is that on my laptop, it's just a black screen (no windows logo or anything, or boot screen) until windows loads fully. So my laptop is working - it's just that there's no display until it's loaded.
    I have my laptop connected to a tv also, as a secondary monitor. On there, the windows logo appears, everything works fine. I can see the boot screen and the windows is loading display. But not on my laptop - just black until windows has loaded. I have windows 7.
    I restored my system to it's intial state using one key recovery but it has not solved the problem. It is worrying because I'm scared that soon my monitor will not even display anything even when windows has loaded.
    Any ideas/advice?

    Hi,
    Welcome to Lenovo Community!
    I’m sorry to hear about your situation and the issue persists even after performing OSRI (Operating System Re-Install) using OKR (OneKey Recovery). Please check if the issue persists after re-installing the Display & Chipset Driver for the computer.
    If the issue persists, I would strongly suggest you to contact our Technical Support for further Assistance to get the details of the nearest Authorized Service Center to get the issue analyzed.
    Click here to open a link where you can select the country and get the exact contact support number. I’m sure they will be a great help.
    Do post us back for further queries.
    Best Regards
    Shiva Kumar
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • Can't see text on video podcast page until video is fully loaded

    Is there any way to change the load order, or am I stuck? It sounds simple, but I have not found it yet...
    Moving parts front to back doesn't seem to help.
    Thanks.
    Message was edited by: Brent Harris3

    The few movies that I have are either flash or QuickTime using an iFrame and everything seems to load before the movies.
    http://roddymckay.com/VisualMedia/QuickTimeiFrame.html
    http://roddymckay.com/VisualMedia/FlashVideo.html
    "I may receive some form of compensation, financial or otherwise, from my recommendation or link."

  • The player don't play untill fully loaded that happend to me on all sites :( help pls

    i don't know why happening i tried to find a solution but with no luck !
    when i start a video it keep on buffering until it's fully loaded i can't play it before that ... >_<

    Hi, I'm in strange territory concerning Mac, but using FF, go here and do whatever it tells you.
    http://www.adobe.com/products/flash/about
    It has worked for others.
    Thanks,
    eidnolb

  • Youtube videos doesn't play until fully loaded

    Youtube videos doesn't play until they are fully loaded. It doesn't work for ANY streamed video, not just Youtube. It happens on both Firefox and IE. I tried to uninstall Flash and re-install it, but it didn't help. The only thing that solves it is restarting the computer, but it just returns after some time.
    How can I fix it?

    Hi, This is the info on the hardware acceleration and system requirements. http://www.macromedia.com/support/documentation/en/flashplayer/help/help01.html 
    The video card affects playback:Although Flash Player can display high-quality video and images by itself, hardware-accelerated scaling uses the video or graphics card on your computer to display images and video more clearly and quickly than Flash Player can on its own.
    Not everyone can use it and that's why turning it off helps. Since you have it turned off, then this no longer affects you.
    They may be some add on in the browser that is causing this. Kaspersky had been using a URL Advisor that is an "extension"
    but whether you have it I don't know. In IE, in the manage add ons, look for "Show"(very light text) and look in all 4 categories for it.
    In FF, it may be in the extensions. I'd look in all, addons, plugins & extenstions.
    If you find it, disable it. If you don't find it, then all I could suggest is to disable all IE add ons except Shockwave Flash Object and Java and see it there is an improvement. Then do the same with FF.
    Hope you find out what is causing it.
    Thanks,
    eidnolb

  • How to detect that Illustrator.Application is fully loaded (VB)

    Does anyone have a trick that they use to determine that the app is fully loaded? Is there a method available that I might be missing? I manage most of the time but I'd like to get this problem trapped. Looking for a method available in the Illustrator Scripting API preferably. Within VB Try/Catch isn't working in this instance...
    Thank you!   -TT
    (CC2014, VB.NET on WIndows 8.1.)

    So after a bit more investigation and understanding (and some sleep), I came up with some VB code to resolve my dilemma. Here's the code:
    Truth be told, my biggest problem was self-inflicted, as I somehow had the VS UI set to throw exceptions even on handled exceptions, leaving pretty much no one to blame but myself. :-( 
    imagecollection wrote:
    i Should do more with vb as it has more external potential then JS.
    let us know how you go.  
    Qwertyfly... -- thanks for your reply here. I truly hope that you do more in VB, as it gets pretty lonely here on this forum. :-)  Please let me know if you ever decide to get involved with VB. I'd be happy to help get you started. :-)
    -TT

Maybe you are looking for

  • No Center/Sub from Audigy using Klipsch Promedia 5.1 (analog) - NOT a CMSS/digital output qu

    <FONT face=Garamond>I am receiving no center/sub output from my Audigy Platinum card. I have had the card installed on the same system (P4 3.0/ASUS P4800 Mobo/Win XP Pro SP2) for a couple of years with no problems. I recently began experiencing inter

  • ITunes hangs on "Backing up" after 4.2 update?

    I just updated my iPad from 3.2 to 4.2, which appeared to work properly. The backup initiated by iTunes is hanging, it's been stuck at about 95% full for about half an hour now. Spinning beach ball and no response from iTunes. The iPad has the black

  • Need to disable the touchpad on a Pavilion dv4150US laptop with Win-XP SP2

    Trying to disable the Synaptics touchpad.   Contrary to adviCe I have seen on the Internet, there is no dialog option for the toudhpad to select disable in my system.  The Windows device manager doesn't even list a touchpad device. The synaptics driv

  • SessionBean Resource Injection

    hi, there ist a possibility at EJB 2.1 to get Data from ejb-jar.xml over <env-enty> ... ist there any possibility or alternative at EJB 3.0 to get Data from descriptors? EJB 3.0 dosn't provide <env-entry> in ejb-jar.xml. thanks Hasan

  • Alternative Items in MRP

    Hi, Is SAP business one will consider alternative items in MRP Wizard for 9.1 PL05?  If no, will there any work around solution?  Please advise. Anna