Preloader progress bar problems

If you've got a second, go to
http://www.madhouseent.net/
My progress bar gets to the 50% mark and then loads the site.
That's not the end of the world, but someone on a slow connection
might give up because it looks like it's loading slower than it
really is.
The loading bar graphic is the correct size.
Here's my code for the first frame and the second frame:

Well, it looks like the full width of your loading bar is
around 200 pixels. Not 100 which is what you're multiplying your
percent by here.
Try this instead.
var fullLoaderBarWidth = (whatever the actual full width of
your loader bar should be at 100%).
(first frame)
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadBar._width = getPercent*fulLoaderBarWidth;
this.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
this.gotoAndPlay(3);
(second frame)
this.gotoAndPlay(1);

Similar Messages

  • Preloader progress bar not move in IE, but move well in Firefox

    I have been in this problem for several days. I really got
    frustrated about it. Pls. anybody can give me some help.
    I created a general preloader using movieClipLoader object
    and draw a progress bar using movieClip. I set the progress bar's
    progress by setting bar_mc._x = percentage, and created as a swf
    file. when test it , it works well, when open it using firefox, it
    still work well, can show the gradual progress in the bar, but if I
    using IE 6 or 7 to open it, it will not show the gradual progress ,
    just jump from 0% to 100% after the whole file is completely
    loaded.
    I saw a note about progress bar not show graduate progress in
    Flash Player 9, so I uninstall it and install Flash Player 8 again,
    it is still like that.
    I really don't know what 's the problem. Could any friends
    give me some suggestion or idea, that will be greatly helpful.
    Thanks.

    Have you contacted Project VII support or searched their knowledge base?
    http://www.projectseven.com/support/index.htm
    Also, is there any way to remove unused styles (in an external CSS) in DW? Just it would be a pain to go through and remove the styles I've tried, but then later decided not to use.
    Not exaclty a DW answer, but I've used the free FireFox add-on to help me find unused selectors. Point it to a sitemap.xml and it can spider the whole site (as listed in that xml file).
    https://addons.mozilla.org/en-US/firefox/addon/5392
    But be careful with it. It apparently doesn't read JavaScript and your PMM triggers are actually used.
    Mark A. Boyd
    Keep-On-Learnin' :-)
    If you are reading this via email, be aware that it may not be an accurate representation of my message. Login to read the actual message and/or to reply.

  • Progress bar problem in IE with on demand application call

    I have several on demand application processes that I call from javascript. The application processes in turn call pl/sql procedures. Some of the procedures take up to 10 seconds to complete and while they are running, the screen just appears to freeze so the user does not know that they are actually running. I would therefore like to add some kind of a progress bar or hourglass or some indication that things are happening.
    So I found the instructions in Re: Display of Hourglass When Page is processing . This works great in Firefox, but not in IE.
    My Footer text:
    <style> #AjaxLoading{padding:5px;font-size:18px;width:200px;text-align:center;left:50%;top:20%;position:absolute;border:2px solid #666;background-color:#FFF;}
    </style>
    <div id="AjaxLoading" style="display:none;">..Processing..
    <img src="#IMAGE_PREFIX#processing3.gif" id="wait" />
    </div>
    My javascript:
    function create_invoice(pMilestoneNumber){
    var agree=confirm("Are you sure you want to bill this Invoice?");
    var get = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=P110_CREATE_INVOICE',$v('pFlowStepId'));
    if (!agree)
         return;
    html_ShowElement('AjaxLoading');
    get.addParam('x01',pMilestoneNumber);
    gReturn = get.get();
    alert(gReturn);
    get = null;
    doSubmit();
    In Firefox, the Progress bar appears immediately after the user clicks ok to the confirm request. In IE, it does not appear until the application process returns with the return message.
    Any help would be greatly appreciated.

    Thanks for your reply. You are right, part of the code got stripped off, I guess I failed to use the code brackets before and after. Here is is again using the code brackets:
    Javascript:
    <script language="JavaScript" type="text/javascript">
    function create_invoice(pMilestoneNumber){
    var agree=confirm("Are you sure you want to bill this Milestone?");
    var get = new
    htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=P110_CREATE_INVOICE',$v('pFlowStepId'));
    if (!agree)
         return;
    html_ShowElement('AjaxLoading');
    get.addParam('x01',pMilestoneNumber);
    gReturn = get.get();
    alert(gReturn);
    get = null;
    doSubmit();
    </script>Footer:
    <style>   #AjaxLoading{padding:5px;font-size:18px;width:200px;text-align:center;left:50%;top:20%;position:absolute;border:2px solid #666;background-color:#FFF;} 
    </style> 
    <div id="AjaxLoading" style="display:none;">..Processing..<br /><img src="#IMAGE_PREFIX#processing3.gif" id="wait" />
    </div>I was using IE8, but I found an another computer with IE7 and I have the same problem there.
    My javascript code throws up a confirm message and as soon as a hit ok, Firefox brings up the progress bar and it stays up until the alert message comes back with the return from the application process. Just the way I want it. In IE, the screen just freezes after I hit ok (the same way as if you don't have a progress bar at all), but then when the alert message comes up with the return from the application process, the progress bar comes up (a little late....).
    Do you have any suggestion as to what my problem may be?

  • Youtube progress bar problem on ipad

    When playing a YouTube video on my ipad air, the progress bar is now appearing higher up in the video and obstructs it.  Normaly, and on my imac, it appears just above the controls section on the bottom. 

    How are trying to watch this YouTube video? With Safari? Or with the YouTube app?
    I see no problems viewing YouTube videos on my iPad using the YouTube app. The progress bar shows at the bottom of the screen as the video starts and it quickly faded away.

  • Jni using progress bar problem

    Hi
    i am new in jni application actually my project is j2ee(servlet,jsp) based. In my one of project module we need to call vb ocx for large processing in background so it is time taking and my framwork is pure mvc based so how i have to show
    progress bar please give me some idea....
    Thanks in advance and sorry for english
    ni

    There's no solution to that in the JNI or Java side of things. If the VB has control, only the VB knows what its progress is, so only the VB can display it. So change it to do that.

  • Flash Player & Flash progress bars problem

    Hi.
    I'm rather desesperate here.  I have the latest version of Flash Player with the latest version of Mozilla Firefox (3.5.3).  Wherever I try to upload a file on a website that uses a Flash component to show the progress, it simply goes up to 100% under a second for a 15MB file.  This is my latest Speedtest.net :
    http://www.speedtest.net/result/574890835.png
    It's IMPOSSIBLE to upload anything over 2MB instantly with that kind of connection.  Even if it's a really good one.
    I've tried anything and everything; even a reformat (two weeks or so ago) and it did NOT solve the problem.  So, I'm pretty sure that the problems lies in either one of those software/code :
    - HTML 5
    - Flash Player
    I don't know if you guys can solve the problem but I just hope you can.  It's really annoying because a majority of file-hosting websites use Flash-based uploaders.  I've been in multiple forums in search for help but nobody seems to be able to solve my problem and in which seem to be unique. The problem also occurs and Internet Explorer 8 and Chrome on my end.  So, my problem isn't browser specific.  The problem also occurs on Windows 7 RC.
    My (modest) machine :
    Intel Core 2 Duo E6600 2.4GHz
    2 GB of DDR2 667MHz Ram
    nVidia GeForce 8500GT 512MB
    ~1.3TB of Hard drive (across 4 hard drives)
    Windows Vista Home Premium FR (Genuine) & Windows 7 RC (Build 7100) [dual-boot]
    Thank you for your help in advance.

    Please help!
    If you want more details, please, ask them to me!

  • Problem using a Flash MX 2004 Progress Bar Component within a Movieclip

    I'm try to setup a progress bar to show the percentage loaded
    of a mp3 audio file using the Flash MX 2004 Progress bar component.
    I can get the progress bar to the work normally by the having the
    component on the stage (not in a movie clip) with the component set
    to:
    mode: polled
    source loader
    with the following actionscript on the layer above:
    pBar.setStyle("themeColor", 0xFF0000);
    var loader:Object = new Sound();
    loader.loadSound("http:/www.mywebsite.co.uk/mymp3.mp3",
    true);
    But I won't to put the preloader inside a Movie Clip (the
    movie clip is called 'content_MC') as the website has alot of
    content. When I do this the mp3 file still streams but the Progress
    Bar doesn't work.
    I think I just need to change the action script so that it
    links with the component telling it to calculate the progress of
    the audio streaming file.
    Am I right? Where am I going wrong?

    I found the problem!!
    While exploring the Fireworks MX 2004 folder located under
    "C:\Documents and Settings\USER\Application Data\Macromedia\"
    folder I discovered that this folder was empty. So, I connected the
    old hard drive and investigated the contents of the corresponding
    folder on that drive. Discovering the wide assortment of files and
    folders in that folder, I simply copied the contents of that folder
    to the Fireworks MX 2004 folder and retried running the application
    and IT WORKED!
    Thanks for all your communications and in depth
    troubleshooting steps, I will keep them in may Application
    troubleshooting Tool Tips for future reference. I have included the
    actions used here which brought about the successful resolution of
    this issue so that if you'd like you might include them in any Help
    Desk Methods you may have. It was truly a collaborative effort
    because I would not have thought to explore the Application Data
    folder to resolve this issue without you pointing me in that
    direction.
    Thanks again!

  • Problem installating Snow Leopard on old Macbook Pro with Intel Core 2 Duo. After creating partition on internal hard disk (Extended Journaled), installation starts but stops at half of the progress bar. Screen asking Restart appears.

    Hello:
    I have tried installing Snow Leopard via the installation disc on a Macbook Pro (2007) with an Intel Core 2 Duo, but I the installation has failed more than 5 times.
    I have first formatted and partitioned the internal hard disk with Mac Os Extended Journal format.
    Once the installation starts, it starts without a problem unti lthe progress bar gest until half completed then a screen asking for a Computer Restart shows up.
    It asks to press the power button for some time until it the computer shuts down and then, press again to turn it on.
    Once turned on, the installation disc gets readed, the installation screen appears again and asks again to start the whole installation process form the beginning.

    Then you have a Hardware Problem.
    Your system is Crashing part way through the install and Re-Booting because of the crash.
    Could be the drive itself or it could be some other hardware part in your system. Like the RAM.
    To check if it is the internal drive connect an External drive to the system by USB and do the install on that external. If the install completes then it more then likely the drive is bad. If it crashes again then it is more then likely some other piece of hardware in your system.

  • Problem with the progress bar in swings

    Hi all,
    I need to show a progress bar till another window opens up in swings.Below is the code i used to show the progress bar.My problem is i am able to get the dialog box where i have set the progress bar but i cldnt get the progress bar.But after the specified delay,another window gets loaded.
    Plz tell me how to show a progress bar till another window loads.Any help is greatly appreciated :-)
                    //Show the progress bar till the AJScreens loads.
                    // Create a dialog that will display the progress.
                    final JDialog dlg = new JDialog(this, "Progress Dialog", true);
                    JProgressBar dpb = new JProgressBar();
                    dpb.setVisible(true);
                    dpb.setStringPainted(true);
                    dpb.setBounds(70,60,150,10);
                    dlg.getContentPane().setLayout(new BorderLayout());
                    dlg.getContentPane().add(BorderLayout.CENTER, dpb);
                    dlg.getContentPane().add(BorderLayout.NORTH, new JLabel("Progress..."));
                    dlg.setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);
                    dlg.setSize(300, 75);
                    dlg.setLocationRelativeTo(this);
                    // Create a new thread and call show within the thread.
                    Thread t = new Thread(new Runnable(){
                        public void run() {
    System.out.println("atleast comes here --->");
                            dlg.show();
                    // Start the thread so that the dialog will show.
    System.out.println("Gonna start the thread --> ");
                    t.start();
    System.out.println("Thread started --> ");
                    // Perform computation. Since the modal dialogs show() was called in
                    // a thread, the main thread is not blocked. We can continue with computation
                    // in the main thread.
                    for(int i =0; i<=100; i++) {
                        // Set the value that the dialog will display on the progressbar.
    System.out.println("i ----------> "+i);
                        dpb.setVisible(true);
                        dpb.setValue(i);
                        try {
                            Thread.sleep(25);
                        } catch (InterruptedException e) {
                            e.printStackTrace();
                    // Finished computation. Now hide the dialog. This will also stop the
                    // thread since the "run" method will return.
                    dlg.hide();regards,
    kani.

    Yeah i have tried that also.But no hope.
    My problem is am able to get the dialog box but not the progressbar,after the specified delay the dialog box goess off and the new window loads up.
    the progress bar is not getting displayed..that is my problem..
    can u plz help me out.

  • Problem in creating progress bar in form6i

    dear all
    how are you?
    i created a progress bar but i face a problem.
    in the when button pressed trigger i write this
    declare
    cursor MY_cur is
    select col1,col2,col3
    from base_table;
    vWIDTH number :=0;
    vSTEP NUMBER := 0;
    begin
    SELECT COUNT(1)
    INTO vROWS
    FROM base_table;
    vSTEP := 300 / vCOUNT;
    show_view('progress_bar_stack');
    for i in MY_cur is
    loop
    insert int my_tab(c1,c2,c3)
    values(i.col1,i.col2,i.col3);
    set_item_property('progree_item',width,width+vSTEP);
    synchronize;
    end loop;
    end;
    I ASK IS THIS A GOOD WAY TO CREATE A PROGRESS BAR OR NOT . AND IS THERE ANOTHE WAY TO CREATE A PROGRESS OTHER THAN THIS.
    PLEASE IF YOU HAVE A WAY , WRITE IT .
    TAREK FATHI
    2005 05 31

    my way of implementig a progress bar is:
    window wn_pbar with canvas cn_pbar and a button bt_pbar. The Button has a width of 1 pixel and max 300.
    now I have a procedure pbar.init (P_<wn-name>, P_<max-value>) which writes a window-header in the wn_pbar and a max-value in a package-variable.
    another function named pbar.next (P_<value> DEFAULT 1) increments an internal variable act-value. This act-value is initially 0 and can increment to max-value. The act-value/max-value is the percentage of the width of the button. e.g. 1200/2000 means 60% -> 60% of width 300 = 180 width for the button.
    another procedure pbar.destroy deletes the variables, closes the window wn_pbar and goes back to the item, where the focus was before the pbar started.
    with this steps you can easily group these objects in a objectgroup and inherit it to all forms you need a pbar. the sourcecode is still in a library pbar.pll which you have to attach.
    it looks like your functionality, but you can use it anywhere you need it.
    try it
    Gerd
    PS: This is a very useful method for forms client/server. In the web you have to check, that the button not refreshes to open.... the more network-roundtrips, the fewer performance...

  • Syncing problem - showing only progress bar

    The syncing keeps showing the progress bar but not actually showing whats moving onto the iphone, like the song, video, etc. I believe it isnt doing anything because it takes forever 4+ hrs and i've only selected about 200mp3 and 500jpegs.
    How can I find out the problem here?

    Carolyn Samit wrote:
    Login to another user account on your Mac. Try Safari there. If you see the same thing there then log back onto your admin account, launch Disk Utility (Applications/Utilities). Select MacintoshHD in the panel on the left then select the FirstAid tab. Click: Verify Disk.
    Haven't done the (obvious) first step yet, DU reports all is well.
    Also, check Safari / Preferences - Extensions. If you have any installed, turn that OFF. Quit Safari, then relaunch Safari to see if it makes a difference.
    No such item in Safari Preferences (v 4.1.3)
    You may not have a third party toolbar add on but follow the instructions here just in case there's a Safari third party plugin installed.
    No toolbars, but several plugins in the internet plugins folders, one in the User/Library, the rest in the system Library. I'm suspecting one of the recent ones, & will try to get to checking it tonight.
    Make sure there's enough free space on the startup disk. Right or control click the MacintoshHD icon. Click Get Info. In the Get Info window you will see Capacity and Available. Make sure you always have a minimum of 15% free disk space.
    Another probable cause, all right. I'm struggling to get the seemed-big-at-the-time 60GB drive back up to 10% . Ah well, must press on with that quest, I guess.
    Several good leads here. Will post again after checking them out.
    Thanks,
    Barry

  • Problem with a progress bar for downloading attachment

    I display the progress bar for downloading attachments and it works fine … but when I am downloading some attachments I get the exception message:
    Exception in thread "main" com.sun.mail.util.DecodingException: BASE64Decoder: Error in encoded stream: needed 4 valid base64 characters but only got 1 before EOF, the 10 most recent characters were: "Q3w5ilxj2P"
    I found the explanation:
    Certain IMAP servers do not implement the IMAP Partial FETCH
    functionality properly. This problem typically manifests as corrupt
    email attachments when downloading large messages from the IMAP
    server. To workaround this server bug, set the
         "mail.imap.partialfetch"
    property to false. You'll have to set this property in the Properties
    object that you provide to your Session.
    http://java.sun.com/products/javamail/NOTES113.txt
    So I turned off partial fetch:
    Properties props = System.getProperties();
    props.setProperty("mail.store.protocol", "imaps");
    props.setProperty("mail.imaps.partialfetch", "false");
    Session session = Session.getDefaultInstance(props, null);
    Store store = session.getStore("imaps");
    store.connect("imap.gmail.com", "<username>","<password>");this solved the problem ….however the method getInputStream() from the Part class blocks the thread until the attachment is completely downloaded and it is impossible to get the information about the number of bytes which have been already downloaded from mailbox.
    Without this information it is impossible to display the progress bar. So is there a way to obtain this information and display the progress bar?
    Edited by: 911161 on 2012-01-31 10:55

    Try the answer I provided to your post on stackoverflow.com:
    http://stackoverflow.com/questions/9086700/how-to-displaly-progress-bar-for-downloading-attachment

  • Problem with the progress bar

    I've have a problem with the progress bar of my ipod. I bought a 5th generation ipod about 8-9 months ago. Now its progress bar stuck so it only shows the 5 dots. It doesn't show both scrubber bar and song time bar. When I press the center button, the 5 dots dissappear from the screen and then reappear but it doesn't show the other bars. Do you know what is the problem and How can I fixed it?

    have you tried resetting ipod, cause as far as i know, this is sometimes just a temporary glitch, mine does this.

  • ITunes problems after upgrading - progress bar "updating library"

    after upgrading iTunes to the latest version I open iTunes and a progress bar appears "updating library". After a few seconds it stucks and I do not get a response at all. I have to cancel the program in the Windows Task Manager. Any help is greatly appreciated. Cheers

    You might try rebooting your computer. Select Shutdown and let the computer turn off. Then start it up again and see if the problem is corrected.

  • HT4623 I am upgrading my iPad to iOS 7 but the progress bar is at 1/4 position for two hours and not moving forward. Is there any problem with it? What should I do? Thanks.

    I am upgrading my iPad to iOS 7 but the progress bar is at 1/4 position for two hours and not moving forward. Is there any problem with it? What should I do? Thanks.

    This is a concern amoung many corporate users.  It's going to take somekind of policy change with apple.
    Enterprise support:
    Call enterprise support  (866) 752-7753  to create  a case ID number

Maybe you are looking for

  • How to validate the dates in the table control ?

    How to validate the dates in the table control ? Can I write like this ? LOOP AT it_tab . CHAIN. FIELD : it_tab-strtdat,it_tab-enddat. module date_validation. ENDCHAIN. ENDLOOP. Module Date_validation. ranges : vdat type sy-datum. vdat-sign = 'I'. VD

  • Webstart File - Preferences hangs on XP Pro.

    My Web Start console, Help->About returns "Version 1.4.2_02 (build b03)". When I click File->Preferences from the Web Start console, the console hangs and I have to kill it from the M$Windows task manager. I'm running on XP Pro SP1. Is there a way to

  • Two BW system to one OLTP system connection issue.

    We are upgrading our BW systems to BI 7.0. We are planning for a parallel Break-fix path. so we made a copy of our BW dev system(BW1) BW2 is a copy of BW1 and plan to upgrade it to BI 7.0 .we plan to retire BW1 after upgrade is completed. When we try

  • Ascii to proxy data conversion

    Hello experts, i have a requirement where i need to read the ASCII files from an web service and convert into inbound proxy data. can we do this? experts inputs on this... regards, chinna

  • Setting iwork 08 as default programs

    Can pages, numbers and keynote be set as the default programs for opening MS office files? Edit: OK I found it - right click .doc, .xls, etc file > open with > other > choose corresponding iwork program > check always open with. Although it looks lik