Preloader doesnt work after Cacheing -

CS3-AS3
I have an app with a preloader - works fine until the content gets cached, then for some reason wont progress to the next slide - Fullscreen mode is set to full (if that makes a difference). It doesnt seem to happen consistently either.
Here is the code:
stop();
import flash.events.ProgressEvent;
loaderInfo.addEventListener(ProgressEvent.PROGRESS, update);
function update(e:ProgressEvent):void {
    var percent:Number = Math.floor( (e.bytesLoaded*100)/e.bytesTotal );
    preloaderMC.gotoAndStop(percent);
    if (percent==100) {
        play();
//IF IE BROWSER
var percent2:Number = Math.floor( (this.loaderInfo.bytesLoaded*100)/this.loaderInfo.bytesTotal );
if (percent2==100) {
    this.nextFrame();

With old Flash preloaders there was often a brief second where both the bytes loaded and bytes total might be the same small number like -4 or 1 or some such. It seemed to happen more when those items were cached. So if you have (-4*100)/-4 you will get 100 percent.
The trick is to to add something to your conditional like:
if(percent>=100 && bytesTotal>10){}
or something like that.

Similar Messages

  • Why my hp mini 5101 the "7" key doesnt work after upgraded the bios?

    why my hp mini 5101 the "7" key doesnt work after upgraded the bios?
    The current bios version is F.07

    korpx,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • Adressbook doesnt work after update to 10.7.3 PB says your adressbook is 5.0.3. Can anyone please help?

    Adressbook doesnt work after update from Snow Lepard to Lion 10.7.3 PB says your adressbook is 5.0.3.
    PB says You have adressbook 10.5.3, yes, but now?
    Can anyone please help?

    Use the copy of AddressBook that is in your Applications folder, not the one on your Dock that's linked to a transplanted copy of the prevoius AddressBook App.

  • The front camera of my iPad 3 doesnt work after updated  ios7

    The front camera of my iPad 3 doesnt work after updated  ios7

    Have you tried closing the Camera app completely and seeing if it works when you re-open the app ? From the home screen (i.e. not with Camera 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Camera app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    If that doesn't work then you could try a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.
    If neither fix it then you could try contacting Apple.

  • Ios 7, camera doesnt work after updating, iphone4

    My iphone 4 camera doesnt work after updating on ios 7

    completely erease the ipad and reinstall the OS.
    Go to settings>general>reset>erease all content and settings. Wait for the ipad to finish then see if it works.

  • Imessaging doesnt work after iOs 6 update, can't send or recieve messages. it isnt the wifi since everything else is working. have tried every solution possible. help?!

    imessaging on ipod touch doesnt work after iOs 6 update, can't send or recieve messages. it isnt the wifi since everything else is working. have tried every solution possible. help?!

    Short of a reset to factory settings I've found making sure iMessaging is not left minimised helps. It doesn't seem to keep its connection. So, by closing after each use this helps. I've been doing this since I logged out of iMessaging at least 1/2 doz times and even changed my apple id pw as this had ceased to be recognised. I get fewer send failures now and don't have an inactive send button so much. Having said this its all a bit of a work around as iMessaging isn't behaving as it once did. If over time not resolved will do factory reset. All the best.

  • Droid 2 global doesnt work after new update

    I have a droid 2 global but it is prepaid and now after the latest update it doesnt work. Can verizon replace my prepaid phone or do I have to purchase another phone?
    <post moved to the "Droid & Droid 2" space from the "My Verizon" space for more exposure.>
    Message was edited by: Verizon Moderator

    Currently, I am not showing a way to remove the Street View for Google Maps application from the device. If you are adamant about removing this feature, the next available option would be doing a factory reset. This can be completed through the following steps:
    Factory Reset option 1
    From the main screen, touch menu tab
    Touch Settings
    Touch Privacy
    Touch Factory Data reset
    Touch Reset Phone
    Touch Erase Everything
    Warning: This will erase all data from your phone, including:
    Your Google account
    System and application data and settings
    Downloaded Applications
    It will not erase: Current System software and bundled applications; SD Card files, such as music or Photos
    Factory Reset option 2  - Warning this will reset device back to original factory settings.
    Turn off the phone
    Power on phone while pressing "X" key on qwerty keypad - release "X" and power key after you see Motorola batwings.
    You should now see an "!" in a triangle with Android guy
    Press the "Search" key on qwerty keypad to enter factory menu, this will unhide the menu and show the following options
    Reboot system Now
    Apply sdcard:update.zip
    Wipe Data/Factory Reset
    Wipe Cache Partition
    Use Vol Up / Vol down to navigate to "wipe data/factory reset" and then use Camera side key or Menu key to select "wipe data/factory reset"
    Use Vol Up / Vol down to navigate to  "Yes delete all user data" and then use Camera key to select "Yes - delete all user data"
    Wait for operation to complete (maybe 1 minute or so) and then press camera key to select "reboot system now"

  • Screen rotation doesnt work after upgrading to lolipop

    After upgrading my phone to lolipop the auto rotation doesnt work even in the safe mode

    @alahmed
    Repair your phone with PCC and report back
    PC Companion (PCC)
    Bridge (for Mac)
    Alternatives on How to backup Xperias
    http://talk.sonymobile.com/thread/36355
    "I'd rather be hated for who I am, than loved for who I am not." Kurt Cobain (1967-1994)

  • Hifi mode doesnt work after xp reboot

    To get the hifi mode to work, i have to remove the power plug at the back and put it in again,  after restarting windows xp. Then it works. I hate doing this
    ps even the hifi button doesnt work!
    any fixes for this would be appreciated!
    thanks
    latest updates etc installed using msi update thingy
    mega 865
    tdk 4x dvdrw
    512 ram
    ati 9800 se 128

    The Hi-Fi mode switch can not be used when the computer is turned on BUT if using the MMC III you will notice that the HI-FI will light up. Can you give us some more information on this ie does it happen if you start up XP and do not use the MMCIII, what happens if you shut your computer down by holding in the PC button? Have you tried this with your CD and AGP cards installed, has this always happened, Have you tried a boot disk to see if the operating system is upseting the LCD. If it works fine off a boot up disk then I would do a fresh install of your XP.

  • Drag and move doesnt work after 5 mintues

    Hi,
    If i start my system up, i can move a window by dragging the titlebar, but then after about 5 minutes it doesnt work anymore. Also i cant copy text by clicking left and moving the cursor. I have a Lenovo T410 and i am using the touchpad. I just freshly configured my system on a new ssd from vertex. Before i didnt have this issue and i copied my old xorg files to the new system but that didnt work either. I have no idea where the problem lies.
    Thanks for your help!
    Cheers Felix

    Hi Igoksadze,                           
    Welcome to Lenovo Community!        
    As per the query we understood that you are facing the issue with the system if the system wakes up the keyboard and mouse not working.
    As per the query would like to give some trouble shooting steps:
    Start>C Panel> System & Security> Power Options> Change Plan settings>Change adv power settings> (and look for the sleep tab / settings along with USB, etc).
    Check if the USB port is disabled or enabled.
    Also check in BIOS for the wake up power options.
    Hope this helps! Do post us back for further queries. 
    Best regards,                        
    Ashwin.S              
    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!

  • Zoombrowser doesnt' work after reloading

    zoombrowser doesn't work after reloading

    Hi vicar9! So that everyone's on the same page, it will be helpful to know what equipment you're using, any error messages you're getting, and the Computer Operating system if applicable. Any other details you'd like to give will only help the Community help you! Thanks and have a great day!

  • Existing passcode doesnt work after iOS 7 upgrade

    Absolutely riduclous from apple, why wont my passcode work after upgrading to ios 7 on an iphone 5?????????? sort it out apple please, can restore iphone because find my iphone is activated on the device.

    We are not Apple we are users like you press power button & menu button hold both down until you see Apple Logo
    then wait you will not lose any data also turn you modem off for 30 seconds then after modem has started up
    try to connect iPhone .
    bsydd uk

  • My logic pro 9 doesnt work after i installed os x lion. What can I do ?

    My logic pro 9 doesn't work after I upgraded to OS X lion. Is there anything I can do to fix this problem? If not how can I downgrade back to Snow Leopard?

    My logic pro 9 doesn't work after I upgraded to OS X lion. Is there anything I can do to fix this problem? If not how can I downgrade back to Snow Leopard?

  • Lenovo Yoga 2 Pro: WiFi doesnt work after driver upgrade

    After experiencing Wireless issues I tried to upgrade my Lenovo Yoga 2 Pro 13" with Windows 8.1 64Bit to the latest drivers from the lenovo support site.
    Ever since I cannot connect to the WLAN anymore. What puzzles me is that the driver status in the device manager shows a different driver version than what I have installed (uninstalling the driver and reinstalling it doesn't change anything here).
    What puzzles me is the Lenovo Website shows driver version 16.6.0.8 (released 25.Jan.2014, see link below), whereas my system display version is 16.6.2.1 (dated 31.10.2013). Hence I thought I have another version from somewhere else on my and removed all driver versions I could find.
    Checking driver details I get the follow file versions:
       C:\windows\system32\drivers\NETwbw02.sys    version 16.6.2.1 Intel, dated 2011
       C:\windows\system32\drivers\Netwfw02.dat       no version or publisher
       C:\windows\system32\drivers\vwifibus.sys          version 6.3.9600.16384 Microsoft
    Still, whenever I deinstall the driver, install the files from lenovo and click "Detect new device" my system pulls the drivers as listed above and is incapable of connecting to any WiFi.
    Windows 8.1. shows no connections available and doesn't connect anymore.
    How can I get my WLAN back?
    regards
       Florian
    Lenovo Driver URL: http://support.lenovo.com/en_US/downloads/detail.page?DocID=DS039994
    Solved!
    Go to Solution.

    hi Florian,
    If Windows Update is configured to automatically fetch updates from Microsoft then the machine most likely have installed the Intel driver update for Intel(R) Wireless N-7260 as discussed in this article (which explains the different driver versions).
    Things that you can try:
    1. If the machine comes with the Intel(R) Wireless N-7260, navigate to:
     - Device Manager 
     - Network Adapters 
     - Intel(R) Wireless N-7260 (right click > update driver software) 
     - Browse my computer for driver software
     - Let me pick from a list of device drivers on my computer (you will then see a list of drivers, check if you have the version 16.6.0.8 from Lenovo and choose it and observe.
    2. Restart the machine and boot into the BIOS (by pressing F2 on the Lenovo screen). Once you're in, navigate to the Configuration Tab and ensure Wireless is set to Enabled (if applicable).
     - Link to picture
    3. Perform a System Restore and choose a date before the issue began. (this will restore the unit to an earlier point in time where wireless connection is working fine)
    4. Perform a Refresh / Reset or press the OneKey Recovery button (this will restore the unit to factory settings - ensure that you backup important files first).
    Regards 
    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!

  • FTP adapter doesnt work after restart

    Hi,
    We have a FTP adapter that stops working if the server is restarted. After investigation, we found the below error in log files.
    XSD Resolution problem.
    XSD Resolution problem.
    Unable to load Translation schemas from  for http://TargetNamespace.com/MYDATA_FILE due to: Unable to lookup schema for 'http://TargetNamespace.com/MYDATA_FILE'
    Please make sure all used XML schemas are imported/included correctly.
    Is there anybody who knows about this problem and share the solution or workaround?
    Thanks

    The solution is either change the order of deployment or copy the FileAdapter.rar file in $ORACLE_HOME/lib location and restart the server as mentioned here.
    http://soa-bpel-esb.blogspot.com/2011/04/javalangnoclassdeffounderror.html

Maybe you are looking for

  • How can I have 2 photos on the screen at the same time so i can copy something from one to the other.

    i know how to import photos just not how to keep the other one on there must be a way to save

  • Budget - K022  - PROBLEM IN CURRENT BUDGET

    Hi guys, i have an issue while entering the over all budget in KO22. When i enter over all budget the "current budget  column "is having an impact. (it is adjusting the variance amount  , but not over writing it) but my requirment is it shoudl overwr

  • Error compiling javamail tutorial

    can anyone figure out what is the error? error says : exception in thread main" java.lang.NoClassDefoundError : GetMessageExample2.java import java.io.*; import java.util.Properties; import javax.mail.*; import javax.mail.internet.*; public class Get

  • Urgent Please help RadioButton + Jsp

    I am doing an project named an online exam. I have various questions say about 10 questions.And there are 4 radiobutton are given as option.In the next page I want to retrive the answers clicked by the user for each of the question.I am getting the v

  • External Server Configuration

    We have an internal Crystal Enterprise 10 server that we can connect to using Crystal Reports 10 .NET on just about any old internal server we try (all Server 2003). The second we remove the web server from the domain and move that server outside the