Director 12 - progress bar

I need to add a progress bar to the splash screen of a Director 12 .dcr which is hosted on a website.
The progress bar doesn't have to show the exact time remaining before the main.dcr starts, it just gives the user a rough indication that "loading" is happening.
I was thinking of using an animated .gif for this, making the .gif visible when the user clicks the Start button, but I don't knon how to do this in Director.
Is there a standard way to make a loading-in-progress indicator in Director, for a web hosted .dcr?
Thank you.

Is this the kind of thing you are looking for?
-- **Drop this Behavior on your progress bar**
global gNetmovieID1
global gCurrentSprite
global gBarWidth
global gBarConverter
global gPercentText -- starts at 0% and ends at 100%
global gStatList
global gPercentDone
on beginSprite me
  tellStreamStatus(TRUE) -- Turns on the stream status!!!
  floatPrecision = 2
  gCurrentSprite = me.spriteNum -- the current sprite "progress bar"
  gBarWidth = (sprite gCurrentSprite).width
  gBarConverter = (float(gBarWidth)) / 100
  gNetmovieID1 = preLoadNetThing("http://www.website.com/filename.dcr?p=" & string(random(1000) ) ) -- preLoads your hosted .dcr file!!!
end
on exitFrame me
  if Netdone(gNetmovieID1) = TRUE then
    gPercentText =  "100%"
    PLAY MOVIE ( "http://www.website.com/filename.dcr" ) -- plays your hosted .dcr file!!!
    abort
  else
    -- This checks the download status and updates the "progress bar" and the gPercentText
    gStatList = getStreamStatus(gNetmovieID1)
    if (gStatList.bytesSoFar > 0) then
      gPercentDone = (gStatList.bytesSoFar * 100.0001) / gStatList.bytesTotal
      (sprite gCurrentSprite).width = integer (gPercentDone * gBarConverter)
      gPercentText = string(integer(gPercentDone) & "%")
    else
      (sprite gCurrentSprite).width = 1
      gPercentText =  "0%"
    end if
  end if
end if

Similar Messages

  • Directories in finder greyed out, with partially-filled progress bars

    I attempted to use the finder to copy some SSDs to an external hard drive.  Normally I use rsync, and this has never failed me.  This time I decided to use the Finder to do the copy because I wanted to know in advance how long the 1.6TB transfer would take.  When I started the copy operation, the finder told me it would take 16 hours.  I left for Boston, expecting the copy to be done when I returned.  It failed, so I re-started it.
    Very close to the end of the copy of the last two SSDs, I received an alert that my external drive had been disconnected (I hadn't touched it).  However, after physically removing the FW800 cable and reconnecting, the drive re-mounted, and the two directories I was trying again to copy were reconnected with it, but they were greyed out, each one showing a progress bar of the defunct copy operation from the last time.
    How do I get the disk, which has now been properly updated via rsync, to forget this vestigal information from the finder that, apparently, was not enough information to get the Mac to just Do The Right Thing and continue the copy, nor sufficiently self-aware to remove itself after the failed copy?
    What''s the fix?

    Well the strange partially-completed progress bars are gone, but my directories in those directories remain grayed out.  Using the command line, I can easily see the tens of thousands of files in those directories (RAW files from a BlackMagic Cinema Camera for an hour-long event).  But the finder refuses to open the directory.
    Does anybody else have any thoughts on how to tell the Finder "you are confused.  Forget everything you think you know, and just rebuild your knowledge from evidence in the filesystem, rather than your own preconceived notion of what you think should be there"?  Or better yet, how to tell the Finder "never try to be smarter than the filesystem.  Just be a **** GUI and let the file system be the file sytem?"

  • Need help with Threading GUI progress bar

    Anyone able to help? I'm sure you've seen this a million times. I've google'd around and tried examples but still can't get a progress bar to work properly under the following situation:
    1. Created a panel with several components to select directory, display directory in tree etc.
    2. When a specific button (Search) is clicked, I want a secondary window to popup and report progress of searching down the directory.
    As you'll probably guess, the progress window isn't being updated until the end. I'm using Threads and using InvokeLater but nothing happens. Is there any good example that does the above? I can't seem to find one to figure this out.
    Thanks
    Speedy.
    Sample code:
    main.java:
    ========
    public class Main {
    public static void main(String[] args) {
    MainPanel mainPanel = new MainPanel();
    mainPanel.show();
    MainPanel.java:
    ============
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    public class MainPanel extends JFrame implements ActionListener {
    public MainPanel() {
    this.setSize(100,100);
    JButton startButton = new JButton("Start");
    this.getContentPane().add(startButton);
    startButton.addActionListener(this);
    public void actionPerformed(ActionEvent event) {
    ProgressPanel pp = new ProgressPanel();
    pp.show();
    SimpleTask st = new SimpleTask(pp);
    st.start();
    while (st.isAlive()) {
    System.err.println("waiting..");
    try {
    Thread.sleep(100);
    } catch (Exception e) {};
    System.err.println("finished!");
    SimpleTask.java:
    =============
    import javax.swing.SwingUtilities;
    public class SimpleTask extends Thread {
    ProgressPanel pp = null;
    public SimpleTask(ProgressPanel _pp) {
    pp = _pp;
    this.setDaemon(true);
    int i = 0;
    String position = "";
    public void run() {
    Runnable updateGUI = new Runnable() {
    public void run() {
    pp.setText(position);
    try {
    for (i=0; i<50; i++) {
    position = "Now on = " + new Integer(i).toString();
    System.err.println(position);
    SwingUtilities.invokeLater(updateGUI);
    sleep(100);
    } catch (Exception e) {}
    ProgressPanel.java:
    ===============
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    public class ProgressPanel extends JFrame {
    private JLabel label = new JLabel();
    public ProgressPanel() {
    this.setSize(200,200);
    this.setLocation(100,100);
    this.getContentPane().add(label);
    setText("Start");
    public void setText(String text) {
    label.setText(text);
    }

    Ok, I'll look down that road. I should have said the Thread is being used because the current while loop will be changed to perform real work. Just an example at the moment to show what I'm trying to do. Does this make a difference? The real task will be to drill down directories, counting file types/dirs etc...

  • Help needed please, with Iphone stuck with apple picture and progress bar after software update attempted

    Help needed please, everytime I try to update the software version on my iphone it comes up with a message saying it could not be completed and is now frozen with the apple picture and progress bar on it. Do I unplug it and hope the macbook pro sees it again, I also stupidly did not back up before starting the download which I realise I will have to go back to the previous back up. This keeps happening, everytime I do this type of update, I'm starting to think I should just give up on updating my software on the Iphone. I thought it was happening because I was using a window based computer to do the updates, this time I used my Macbook Pro. Please somebody help

    ljm17 wrote:
    ...This keeps happening, everytime I do this type of update, I...
    Then you should know what you need to do... If you don't remember...
    See Here  >  http://support.apple.com/kb/HT1808

  • 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.

  • After updating to the latest version of Firefox on my Mac there is no progress bar for the page load. I really miss this feature and can't seem to find a way to obtain it.

    The page load progress bar that was on the lower right of the window is no longer there. After updating to the latest version of Firefox on my Mac there is no progress bar for the page load. I really miss this feature and can't seem to find a way to obtain it. The tab has a circular progress wheel but this is useless for determining a stuck or slow loading page.
    PLEASE NOTE: I am typing this in from a Windows based work computer but am asking about my Apple MacBook Pro that i use at home.

    Firefox 4 saves the previous session automatically, so there is no longer need for the dialog asking if you want to save the current session.<br />
    You can use "Firefox > History > Restore Previous Session" to get the previous session at any time.<br />
    There is also a "Restore Previous Session" button on the default <b>about:home</b> Home page.<br />
    Another possibility is to use:
    * [http://kb.mozillazine.org/Menu_differences Firefox (Tools) > Options] > General > Startup: "When Firefox Starts": "Show my windows and tabs from last time"

  • When I try to empty trash, progress bar stops, and I have to reset finder

    This has been happening for about a week or so. Regardless of what the files are, I am unable to delete them. Whether I do a standard empty trash, or a secure empty trash, I end up with the same progress bar that stops during the process. I've let it sit for several minutes and over an hour, leaving me the only option of doing a force restart of finder.
    Currently I am unable to delete anything, putting a serious hold on my workflow.
    It appears that many people are having all kinds of trash issues with Snow Leopard. I'm assuming Apple is working on a fix, but I'm not sure when that's coming out. Until then, if there is some kind of work-around, I'd love to know about it.
    Any guesstimates on when Apple will release the next OS update?
    Cheers.
    Ben

    Start with http://www.thexlab.com/faqs/trash.html Do note that AFAIK, there aren't any trash issues with Snow Leopard, just the normal handful of common issues, usually fixed by the steps in the linked article.

  • Internet recovery gets stuck on the spinning globe with the progress bar below.

    Hello Everybody!
    I'm trying to fix the iMac (27-inch, Mid 2010) of my friend. He said it doesn't boot anymore and just gets stuck on the grey screen with the Apple logo and the spinning wheel below. So my first step was to go into the Startup Manager by pressing the Option key after the chime. There I was presented with the Macintosh HD and the Recovery HD. After selecting the Recovery HD to access the Disk Utilities I got stuck on the grey screen with the Apple logo and the spinning wheel again. So I guess the data on the drive is corrupted and might have to be replaced. But before I do that, I wanted to give the Internet Recovery a try. I connected the iMac to the internet using an ethernet cable and pressed Command + Option + R after the chime and the spinning globe appeared with the info: "starting recovery process from network. This may take a while". After a short time the sentences are replaced by a progress bar and a timer that is counting up. The progress bar then moved for a tiny little bit and then nothing happens anymore but the timer keeps counting up. I waited for quiet some time before I gave up. I did not get any errors so I can't provide any other useful information. Can anyone give my some advice? I read in other posts that the ISPs of specific countries block ports which are needed for the internet recovery. I'm in Thailand right now. Does anyone know if that might cause the problem?
    Thank you for all your help!

    Neither we nor Apple support jailbroken iDevices.

  • HT1212 My ipad mini has been crashing a lot recently so I started a system reset. However, it's now stuck with the progress bar less than a quarter gone: this has been the case for several days now. I have tried resetting from itunes but it needs the pass

    Now it's stuck with the progress bar less than a quarter full. I have also tried resetting through itunes which works right up to the point where itunes states that it needs the passcode to be inputted into the ipad to connect to it. At which point it then sticks at the same progress bar point. HELP!! please, this ipad is really important to my work.

    Well the term "hotlined" I have never heard before. In any case many states (like NY) just passed regulatory powers to the State Public Service Commission of which it may be called something different in your state. You could file a complaint with them. Or file a complaint with your state attorney generals office, they also take on wireless providers.
    The problem here is the staff you speak to are poorly trained, in days gone by it took one call to them and they pulled up your account and see the error and had the authority to remove any errors. They did not remove legitimate account actions, but used their heads instead of putting a customer off or worse lying to the customer.
    Its a shame you have to go through what you going through.
    Good Luck

  • Intel iMac - won't start - grey screen & progress bar

    I have a 2006 Intel iMac - 20" model, Intel Core Duo, 2GHz, 2GB RAM, 250GB HDD, etc.  It was one of the very earliest Intel iMacs.  Kept updated, running OS 10.6, etc.
    It has worked extremely well for over 5 years - apart from the Superdrive being temperamental sometimes - but has suddenly gone wrong.
    Last week the machine completely froze for no apparent reason.  I had to force a reboot.  This failed - grey screen and the grey spinning wheel (if that's what it's called), indefinitely.
    Forced reboot again and this time held down the shift key to go into safe boot mode.  This time it was successful, and I was able to get to the logon screen & log myself in.  I opened Disk Utility & attempted to do some diagnostics but the machine froze again.
    Looking around various other forum postings...I rebooted the machine in single user mode and was able to get to the command line to type 'fsck -fy' to attempt to fix disk problems.  This failed repeatedly, with an error message 'invalid node structure'.
    I tried to boot my machine from the OS X disc but my Superdrive refused to play ball - it would not read the disc (or any other disc for that matter, including a copy of DiskWarrior that I have).
    I have now got hold of an external DVD drive in the hope that this would show up as a boot device when I switch the machine on while holding the option key down.  No such luck - the drive powers up ok (power via USB) but I'm not given the option to boot from it - in fact that screen doesn't appear at all.
    All that happens now on powering up - regardless of what I do - is the grey apple symbol appears and a progress bar beneath it.  The progress bar gets stuck about 5% of the way along, and then after about 10 minutes it disappears and is replaced with the grey spinning wheel thingy.  And then it just gets stuck - nothing else happens.
    HELP!
    All my important data is backed up on an external drive via Time Machine, so that should be safe, but I'm desperate to get the machine running again.
    One thing that occurred to me is that I've had a program called ReFit installed on the machine which allowed me to run the machine as dual boot etc. (and I do have a couple of other small partitions on the drive, not currently used) but the ReFit welcome screen stopped appearing a couple of weeks ago for some reason.  I'm wondering if this has somehow messed things up...?
    Grateful for any suggestions...
    Thanks,
    Alan.

    For the drive, you should be OK with any SATA 2 at 3 MB/s transfer speed. You could also use a SATA 1, no jumpers needed. (Not SATA 3 - can't be jumpered down.) The early 2006 Intels were 1.5 MB/s -- at least the drives were, so I'm assuming the SATA controller on the logic board was also. Might just be SATA 2 hadn't yet been introduced and can run the faster SATA 3 without jumpers. My guess is not. You should be able to set jumpers on the drive for backwards compatibility. You'll have to contact the drive manufacturer or go to their website for that info.
    http://www.everymac.com/systems/apple/imac/stats/imac-core-2-duo-2.16-20-inch-sp ecs.html
    As for the superdrive, I'd contact the manufacturer to check on compatibility.
    Glad I'm able to help. BTW, in case you haven't noticed, maybe you want to have a look here.

  • Progress bar on start up doesn't finish

    When I log onto my MacBook Pro after I enter my password a progress bar appears which starts to move across but only goes about 20% of the way before the desktop appears. I have heard that there has been a problem with automatic updates which don't fully install and this could be a symptom of that. Unfortunately I now get a problem where the Desktop seems to freeze and I can't select items with the trackpad. I'm not sure if the two are linked or just a coincidence.

    That is normal. If you get to the Desktop and all is working you don't have a problem. But if you do have a problem, then you need to do this:
    Try these in order testing your system after each to see if it's back to normal:
    1. a. Resetting your Mac's PRAM and NVRAM
        b. Intel-based Macs: Resetting the System Management Controller (SMC)
    2. Restart the computer in Safe Mode, then restart again, normally. If this doesn't help, then:
         Boot to the Recovery HD: Restart the computer and after the chime press and hold down the
         COMMAND and R keys until the Utilities menu screen appears. Alternatively, restart the
         computer and after the chime press and hold down the OPTION key until the boot manager
         screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    3. Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the Utilities menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu. Select Restart from the Apple menu.
    4. Reinstall Yosemite: Reboot from the Recovery HD. Select Reinstall OS X from the Utilities menu, and click on the Continue button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible
                because it is three times faster than wireless.
    5. Reinstall Yosemite from Scratch:
    Be sure you backup your files to an external drive or second internal drive because the following procedure will remove everything from the hard drive.
    How to Clean Install OS X Yosemite
    Note: You will need an active Internet connection. I suggest using Ethernet if possible
                because it is three times faster than wireless.

  • Animated Progress Bar issues

    I am working with the animated progress bar from the late Carl Backstrom's demo applicaiton but to my amazement, the bar refuses to animate unless the javascript is triggered from a button press. This is not really acceptable for my purposes as I need to have it fire and work though an onLoad on the body attributes. Any Sugestions? I know some people are going to probably say ExtJS and JQuery but our development rules here will not allow us include either of these libraries at this time.

    It is actually an intermediate page with a PL/SQL process that runs on submit to cache database information from a remote db. I actually have a button on another page that routes into the page in question so that I can clear everything in the background to prevent people from being able to go to another page while loading process is under way. The way I have it setup now is you click a button to start a multistage process and you are taken to a loading page which basically takes away other links on the page and gives you a blank page with the progress bar. Once loading is finished, it branches the person to the next step.

  • How to determine a sql query size to display a progress bar

    I would like to show a progress of an sql query within a jsp page.
    Background:
    I have a reporting web application, where over 500 contacts can run reports based on different criteria such as date range....
    I current display a message stating 'executng query please wait', however the users (hate users) do not seem to wait, thereofore they decide to run the query all over again which affected my reportign sever query size (eventually this crashes, stopping all reports)
    Problem:
    The progress bar is not a problem, how would I determine the size of the query at runtime therefore adding the time onto my progress bar.

    Yes it's doable (we do it) but it sure ain't easy.
    We've got about 23,500,000 features (and counting) in a geodata database. Precise spatial selection algorithms are expensive. Really expensive.
    We cannot impose arbitrary limits on search criteria. If the client requires the whole database we are contractually obligated to provide it...
    For online searches We use statistics to approximate the number of features which a given query is likely to return... more or less the same way that the query optimiser behind any half decent (not mysql (5 alteast)) database management system does.
    We have a batch job which records how many features are linked to each distinct value of each search criteria... we just do the calculations (presuming a normal (flat) distribution) and...
    ... if the answer is more than a 100,000 we inform the user that the request must be "batched", and give them a form to fill out confirming there contact details. We run the extract overnight and send the user an email containing a link which allows them to download the result the next morning.
    ... if the answer is more than a million features we inform the user that the request must batched over the weekend... same deal as above, except we do it over the weekend to (a) discourage this; and (b) the official version ensure we have enough time to run the extract without impinging upon the maintenance window.
    ... if the answer is more than 5 million we display our brilliant "subscribe to our DVD service to get the latest version of the whole shebang every three months (or so), so you can kill your own blooody server with these ridiculous searches" form.
    Edited by: corlettk on Dec 5, 2007 11:12 AM

  • Progress Bar is not working in Labview 6i

    Hi all,
    i implemented one vi with  Progress bar using labiview 6i. i created property node for the progress bar to set the range as 550 using scale >Range>maximum. progress bar is updating well until the value of 220. later the progress bar is starting from begining. What is the maximum range we can define for the Progress bar.? please see the attached picture . Am i missing anything from the figure?
    thanks,
    kalpana 
    Attachments:
    Progress Bar.png ‏60 KB

    Hi kalpu,
    as your "slide" is of datatype U8 it will not display values greater than 255…
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • TS3694 hi i recently updated into ios 7.0.4 now i want to fully restore my ipad to resell but when i restore it it got stuck with apple logo and progress bar with 45% completed as firware file is downloaded using ipad 4 wifi itunes 11.3.8

    hi i rescently updated my ipad 4 in ios 7.0.4 and for resell purpose i want to restore my ipad via itunes but it got stuck at apple logo and progress bar of 45% completed i tried it 50 times but it stuck on that exact point for hours i cant able to restore it and had no errors it just like freezes at one point i also uses dfu mode but got stuck at same problem using windows 7 32 bits itunes 11.3.8 ipad 4 wifi please help

    My iPhone 5 wouldn't start after I turned it off a few minutes after writing this. It went into recovery mode and I had no choice but to connect to iTunes on PC and restore.
    I restored to factory setting first, just to validate my phone was okay. For a second consecutive iOS update, the  iPhone 5 did not update smoothly while connected to PC and iTunes - I had to retry two times before the progress bar for the update showed. (The exact same problem with the restart occured when I updated to 7.0.4.)
    The good news is that I was ultimately able to restore the iPhone 5 to factory settings while running iOS 7.0.6. I did have a backup from about a month ago lying around and was able to successfully restore with that as well, so the damage done is almost negligible since I had my contacts, notes, mail, etc. backed up to iCloud.
    Once I completed both restores, the sync with iTunes worked fine.

Maybe you are looking for