Loader to reach 100% after loading several SWFs?

How do I make the loader reach 100% when all a.swf, b.swfs, c.wfs and d.swf completes loading?
prototypeLDR.addListener(prototypeLO);
var swfsLoaded:Number=0;
var prototypeLDR:MovieClipLoader = new MovieClipLoader();
var prototypeLO:Object = {}; prototypeLDR.addListener(prototypeLO);
prototypeLO.onLoadInit = function(targetMC2:MovieClip){
          swfsLoaded++;
          if(swfsLoaded==4){
                    for (i=1; i<5; i++) {
                              _root.vest_mc["mcA"+i+"_mc"]._visible=false;
          _root.loaderBar2._visible = false;
          _root.borderX2._visible = false;
          _root.loaderBack2._visible = false;
          _root.gotoAndPlay(9);
prototypeLO.onLoadStart = function(targetMC2) {
          _root.loaderBar2._visible = true;
          _root.borderX2._visible = true;
          _root.loaderBack2._visible = true;
prototypeLO.onLoadProgress = function(targetMC2, lBytes, tBytes) {
          _root.loaderBar2._width = (lBytes/tBytes)*100;
          _root.percentDisplayZ.text = "% "+Math.round((lBytes/tBytes)*100);
btn.onRelease = function() {
                     prototypeLDR.loadClip("www.web.com/myfile/a.swf,_root.main1_mc);
                    prototypeLDR.loadClip("www.web.com/myfile/b.swf,_root.main2_mc);
                    prototypeLDR.loadClip("www.web.com/myfile/c.swf,_root.main3_mc);
                    prototypeLDR.loadClip("www.web.com/myfile/d.swf,_root.main4_mc);
//do more...

You need a variable that is the sum of the total bytes of all your SWF and one that has the count of bytes loaded for use in instead of lBytes and Tbytes
Thanks. How do I get the total count?
One approach would be to make the bar width total change 25% for each file.
Thanks Ned. But the bar would still be _visible=false; 4 times?

Similar Messages

  • Mac won't boot, starts with white apple screen and spinning wheel. Also has grey loading bar which disappears after loaded then stays at white apple screen.

    Mac won't boot, starts with white apple screen and spinning wheel. Also has grey loading bar which disappears after loaded then stays at white apple screen.

    Hi cybertoof,
    Welcome to Apple Support Communities.
    It sounds like you're seeing a startup issue with your Mac, it's booting to a gray screen with an Apple logo. Try the suggestions in the article linked below, they will resolve most issues related to starting up your Mac.
    Mac OS X: Gray screen appears during startup
    http://support.apple.com/kb/TS2570
    I hope this helps.
    -Jason

  • Battery of a 4 week old macbook (2012) pro 13''. It reaches 100% after a hard time but fall down to 99% after few seconds. What is the problem?

    Why does my newly bought Macbook pro 13'' 2012 battery has a hard time reaching 100%. It reaches to 100% with a longer charging but then falls down to 99% in a few seconds time. I have heard and read about calibration. But I think that the computer is young (only 4 weeks old) to be calibirated. What might be the issue here? This problem started just recently.

    When my MBP is plugged into the wall (when I am near a plug, I usually have it plugged in) it will stop charging at 100% and drop slowly to 95% before auto-recharging to 100%.
    Saves the circuits from charging all of the time.
    I do run it on battery at least once a month down to 40%.

  • My MacBook Pro will turn on but goes to the logo and loads.. But after loading it won't turn on

    I clicked to turn my MacBook on.. It goes to the apple logo and loads like it's going to turn on afterwards. But then, the logo just sits there for hours. What exactly is wrong and how can I fix this???

    It's hard to offer troubleshooting suggestions other than the basics when the OS system is unknown.  Each OS has it's own troubleshooting and/or diagnostics.
    Check out the following KB Article:  http://support.apple.com/kb/HT1159 Mac OS X versions (builds) for computers
    ==============
    It would help us to know which comp model you have, which OS & version you're using, how much RAM, etc. You can have this info displayed on the bottom of every post by completing your system profile and filling in the information asked for.
    This will help in providing you with the proper and/or correct solutions.

  • Why are some of my websites not loading all the way after loading 7.0.1?

    I upgraded to 7.0.1... CNN, eBay, webemail, banjohangout.org (modal windows script needs files from widget) and some other websites do not open properly . I am running XP 32. I upgraded Radeon x1600 video drivers upgraded to v. 8.593 (10.2). Troubleshoot in Firefox 7.0.1 says WebGL & GPU blocked...customer needs to upgrade to v. 10.6 or higher. ATI (manufacturer) does not have V.10.6. What now?

    -> Clear Cookies & Cache
    * https://support.mozilla.com/en-US/kb/Template:clearCookiesCache
    -> [[How to clear the cache#w_clear-the-cache|Clear the Network Cache]]
    -> Reload web page(s) and bypass the cache.
    * Press and hold Shift and left-click the Reload button.
    * Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    * Press "Cmd + Shift + R" (MAC)
    Check and tell if its working.

  • Which Transcation Lead The 'Max. CPU load' Reached 100%?

    Hello Gurus,
    I've received our EWA report on Sep. 5.
    It told me the CPU index 'Max. CPU load [%]' once reached '100%' on Aug. 27.
    I want to find out which transcation lead the index to '100%' on that day.
    But I still cant' find it out after using OS07/ST06/STO3N/ST06N.
    Do you have any good idea for me?
    Thank you very much!
    Jason

    Dear All,
    Here below is SAP's reply. Just For your information. Thank you again for your help.
    ==============================================================================
    Hello Jason
    We found that you using power5 CPU on AIX server with CPU dynamic allocation.
    The CPU statistics of SPLPARs are not reliable within SAP standard monitors. You can not believe the current CPU utilizaiton check in EWA report. IBM and SAP developed CCMS transactions for monitoring those environments. It is recommended to use your Solution Manager system
    (central monitoring system) for monitoring those environments. Please refer to the following SAP Notes and consider activating CCMS monitoringfor your SPLPAR environment:
    SAP Note Number Description
    994025 Virtualized OS environments in the operating system Monitor
    1019567 (1) Corrections for new operating system monitor
    1134779 (2) corrections new operating system monitor
    1147500 (3) corrections new operating system monitor
    1147334 CPH activation of OS data for SAP Remote Services
    Install the latest version according to SAP Note 19227 - ?°Get the
    latest saposcol?± on all your servers and activate CCMS monitoring.
    Last Please Monitoring for SPLPARs is fully available if ?°Pool
    utilization authority?± is granted. The PUA can be set individually for
    each SPLPAR.
    In case of problems regarding set up the new hardware utiization
    monitor, you can open a problem message on component BC-CCM-MON for
    further help.
    Best Regards,

  • All of my iMovie projects disappeared after loading Mavericks.  The updated version of iMovie shows no files and cannot find any files to Import.  My machine, a beefed up Mac Mini, has slowed to a crawl.  Suggestions?

    My Mac Mini takes forever to load programs now.  After loading Mavericks it seems like I am back in PC World again!!  My biggest concern is ALL of my iMovie projects seem to have vanished.  I do not have sound on some web sites like YouTube.  I lost the option to mirror from the Mac to the TV but I was able to solve that.  Any suggestions on recovery of files?  I do not use TimeMachine and did not back up anything before the Mavericks installation.  I know...that's bad.  Any suggestions would be greatly appreciated.
    Here is what I am running:
      Model Name:          Mac mini
      Model Identifier:          Macmini4,1
      Processor Name:          Intel Core 2 Duo
      Processor Speed:          2.66 GHz
      Number of Processors:          1
      Total Number of Cores:          2
      L2 Cache:          3 MB
      Memory:          8 GB
      Bus Speed:          1.07 GHz
      Boot ROM Version:          MM41.0042.B03
      SMC Version (system):          1.65f2
      Serial Number (system):          C07DV15PDD6L
      Hardware UUID:          132F7FB8-1556-55D3-BF33-C1A5EFC69D12

    My Mac Mini takes forever to load programs now.  After loading Mavericks it seems like I am back in PC World again!!  My biggest concern is ALL of my iMovie projects seem to have vanished.  I do not have sound on some web sites like YouTube.  I lost the option to mirror from the Mac to the TV but I was able to solve that.  Any suggestions on recovery of files?  I do not use TimeMachine and did not back up anything before the Mavericks installation.  I know...that's bad.  Any suggestions would be greatly appreciated.
    Here is what I am running:
      Model Name:          Mac mini
      Model Identifier:          Macmini4,1
      Processor Name:          Intel Core 2 Duo
      Processor Speed:          2.66 GHz
      Number of Processors:          1
      Total Number of Cores:          2
      L2 Cache:          3 MB
      Memory:          8 GB
      Bus Speed:          1.07 GHz
      Boot ROM Version:          MM41.0042.B03
      SMC Version (system):          1.65f2
      Serial Number (system):          C07DV15PDD6L
      Hardware UUID:          132F7FB8-1556-55D3-BF33-C1A5EFC69D12

  • Can't restore my backup after loading update !!!!

    I backed up my phone yesterday before loading the update.  After loading the update, I got an error saying I couldn't restore my phone since I didn't have enough storage.  After THREE hours with Apple Care and 5 RESTORES, they still couldn't get my backup restored.....so I have lost over 1,000 photos not to mention everything else I've got on my phone for the last two years.   Apple tells me that since the update was larger than the previous update,  it took up too much room, and since I was close to capacity on the phone, my backup is TOO large......after THREE hours, they pretty much insinuated it was MY FAULT for having my phone at capacity.......there is no warning anywhere about the update taking up too much space and to NOT do the update if your phone was almost full.  Does anyone have ANY suggestions how to be able to get my backup smaller so I can get it back on my phone???  Apple Care said it isn't possible and I can bo buy a phone with more storage....to the tune of $800.00. 

    http://lmgtfy.com/?q=iPhone+error+code+21

  • GoToAndPlay after Loading a SWF

    I have a preloader that loads an external .swf. Problem is, it doesn't show the .swf until it is 100% loaded. But, the external .swf starts to play before it reaches 100%. I placed a stop function in the external .swf so now, after it loads 100% it is still on the first frame. How do I get it to automatically goToAndPlay the second frame?
    Also, when the external .swf reaches the end, it needs to loop back. I am guessing that I will have the same problem after it reaches the end, loops back to first frame and stops again.
    Any ideas on how to beat this would be appreciated.

    Thank you kglad. That worked!!! Now I just need to get the loader to work the way it is suppose to. But, everything else is working.
    All that is left is to get the external .swf to start to show after only 10% is loaded, not 100%. But, I have this question posted as a different thread.
    http://forums.adobe.com/thread/417681?

  • Get access instances after load an external swf (bulkLoader)

    The problem: how can I get access to instance items after an external swf  loaded?
    My  code:
    var  containerMC:MovieClip;
    var _bulkLoader:BulkLoader=new  BulkLoader("loader");
    _bulkLoader.add("external.swf");
    _bulkLoader.add("image.jpg");
    _bulkLoader.addEventListener(BulkProgressEvent.COMPLETE,
    _onDesignLoadComplete);
    _bulkLoader.start();
    function  _onDesignLoadComplete(event:BulkProgressEvent):void  {
         containerMC=_bulkLoader.getMovieClip("external.swf");
         addChild(containerMC);
        containerMC.sgMC.addChild(_bulkLoader.getBitmap("image.jpg"));  //<--- here it's working, I understand,  why.
    containerMC.sgMC.addChild(_bulkLoader.getBitmap("image.jpg"));  //<--- here it doesn't works....why?

    Hi,
    I use AS project. I wanted to reach instances out of the function, but it seems there is no solution to do that.
    So I have to put the other codes in an another function called from the handler function. But in this case it will be difficult, but not impossible.
    The solution is:
    var  containerMC:MovieClip;
    var _bulkLoader:BulkLoader=new   BulkLoader("loader");
    _bulkLoader.add("external.swf");
    _bulkLoader.add("image.jpg");
    _bulkLoader.addEventListener(BulkProgressEvent.COMPLETE,
    _onDesignLoadComplete);
    _bulkLoader.start();
    function   _onDesignLoadComplete(event:BulkProgressEvent):void  { //in project this is private function
          containerMC=_bulkLoader.getMovieClip("external.swf");
          addChild(containerMC);
        baseFunc(); //call the other function
    function baseFunc():void {//in project this is private function
        containerMC.sgMC.addChild(_bulkLoader.getBitmap("image.jpg"));  //<--- here it will work

  • Using a container to load several swf files and play them

    I need some help. I want to use several swf files and have them be called upon in a container file and play them in sequence. It's a presentation that needs to play thru but still have the ability to stop, click on items, open a popup and then continue on in the presentation. I am building all the individual "chapters" and their "sub-chapters" as swf files, with the hope that I can load them in order. I am relatively new to AS3. Help?

    If you will be loading swf files into a container then you will use the Loader class to accomplish that, so give that a looking over in the help documents and see what you can do.  If you have a problem getting it to work, post your code and describe what you have done.

  • RPC Remote calls fail after loading sibling.

    Hi All,
    Main loads an app compiled in 3.2. Cannot recompile legacy SWF with version of Main.
    Main and Client are on the same domain. Debugging on localhost.
    Sibling has RemoteObject code but never makes RemoteObject calls.
    Main apps remote calls start failing after sibling is loaded.
    TypeError: Error #1034: Type Coercion failed: cannot convert
    mx.messaging.messages::AcknowledgeMessage@c7ab831 to mx.messaging.messages.IMessage.
    <mx:SWFLoader id="swfLoader"
            loadForCompatibility="true"
            trustContent="false"
            width="100%" height="100%"
            source="ClientGuiApp3-2.swf?fredOn=false"
            complete="swfComplete();"
            creationComplete="initNestedAppProps();"/>
    What I have done to try to fix it.
    trustContent = "False" to put it in its own security domain.
    I thought loadForCompatability good enough to make them use their own class definitions?
    Document I found says RPC special case for multiversion Sandbox or Bootstrap.
    http://help.adobe.com/en_US/Flex/4.0/html/WS2db454920e96a9e51e63e3d11c0bf69084-7f0c.html
    loadForCompatibiity means sandboxing or new security domain for the sibling?
    Thanks in advance,
    Kevin

    1. Remove the WinrmIIS Extension from "Programs and Features"
    2. Reboot the server
    3. Execute the cmd "winrm quickconfig". This adds an exception for the remote management in the Windows firewall.
    4. Install "Winrm IIS extension
    5. Try open Exchange Management Console
    Let me know what happens :)
    Thanks for your guide;
     "WinRM IIS Extension" is not installed.and firewall is off.
    When I open up the Exchange Management Console ,after these message : 
    <Initializing ...
    Setting up Remote Powershell session to: ServerName.MyDomain.net ...>
     I'm seeing these errors:
    <The following error occurred when setting up Remote Powershell session to 'ServerName.MyDomain.net':
    Closing remote server shell instance failed with the following error message : The WinRM client cannot complete the operation within the time specified. Check if the machine name is valid and is reachable over the network and firewall exception for Windows Remote Management service is enabled. For more information, see the about Remote Troubleshooting Help topic. >
    also When I open up the Exchange Management Shell,After several hours the below message remain:
    <VERBOSE:Connecting to  ServerName.MyDomain.net >

  • 100% CPU Load

    Hi,
    I've been running the trial of Lightroom on Win XP, Athlon XP 3.2Ghz w/1Gb RAM + 2 hard drives. 1 SATA drive (all my images) and a 10Gb IDE disk for the database.
    I've read some of the FAQs and switched off every process that I don't need (AVG, iPod service etc). However, I've found that lightroom completely takes out my PC quite regularly (BSOD) and when it doesn't do that, it either crashes itself or sits there, doing absolutely nothing but taking 100% CPU load. It seems to be doing something in substrate.dll but I've googled and not found much information on it.
    anybody have a similar experience? any ideas? From the odd bit of time I've had with the tool, I think it will be great, if only it didn't fall over at every opportunity.
    cheers,
    Matt

    I have upgraded to Lightroom 1.1 and am having severe problems. I am running <br />Windows XP SP2. When I try to access a photo in Library or Develop, it hangs <br />for minutes "loading."  Windows Task Manager indicates 100% CPU issues <br />whenever I try to do anything.  I see by this thread that I should increase <br />the swap file (which for Adobe Photoshop CS3 is located on another disk on <br />my laptop as hdd space is limited on my primary hard drive).  I cannot find <br />this setting for Lightroom.<br /><br />Also, should I try to delete all photos in the Catalog and reinstall all of <br />them to improve performance?  I am quite desperate.  I did not have these <br />problems w/ Lightroom 1.1, even with limited hdd space.<br /><br />Please advise. Thanks,<br /><br />Ina<br /><br /><[email protected]> wrote in message <br />news:[email protected]..<br />> Hi Matt --<br />><br />> One thing that might be revealing would be to run FileMon (get it from <br />> sysinternals.com) as that may provide further clues to what LR is doing <br />> with its time. Filtering the traffic by lightroom.exe and let me know what <br />> activity you can see there.<br />><br />> One question: do you have files offline (on external disks that aren't <br />> plugged in, for example) and have automatically write XMP enabled (in <br />> catalog settings, which can be reached via the preferences dialog or in <br />> the file menu).<br />><br />> Dan Tull<br />> Lightroom QE, Adobe Systems

  • Premiere Elements 8 won't do anything after opening - and after loading contents disk

    Similar to an earlier thread, ie: http://forums.adobe.com/message/3058854#3058854 I couldn't get Premiere Elements to work - but this was back in July and I hadn't found the forums at that point, getting baffling lost trying to find anything at all useful on the Adobe website.
    Premiere Elements 8 did originally display an error message if you tried to open a project, ie I managed to open an existing project or create a new one, but the program only ever showed a blank screen and no menu options could be selected so these projects were empty. This error message appeared if I tried to open a project I'd just created with premiere elements 8. It didn't even seem to like its own files.
    It's a brand new pc, so it's never had any other versions of premiere on it. It came from Dell preloaded with premiere/photoshop elements but only the latter works.
    Initially I spent hours trying to get this to work, searching for clues on the Adobe website, but then other pressing things have intervened and I gave up on it until today.
    About the last thing I did was to download a trial version and install that and I entered my full version registration number when doing this. Still nada and I gave up.
    Well today I had another go. If I opened my empty project from the organiser I got a blank screen, then I tried again from within Premiere. I also tried opening it as a new project giving it the same name as the original. Surprise, surprise, it worked and the monitor and timeline, etc, appeared. However it was temperamental and if I closed the program down I seemed to have to open it a few times in Premiere (not the organiser that never seemed to work) before the workspace appeared.
    I should have thought myself lucky and left things like this. When the program started it reminded me that the stuff on the contents disk wasn't loaded. I decided to load it up too but in the process I got an error message. I think it said something about Framework 4 being loaded? by user system and that this needed to be changed. I let it go ahead and do this and left all the contents loading up. Takes a long time doesn't it? Needless to say this isn't the first time I've done this.
    Well it was after this that I arrived back at the blank screen, nothing opening up at all just as it was when I started - a little loading project window appears, the blue progress line gets to 100%, but the application screen remains grey and none of the menu options can be selected. I tried loading the 8.01 patch but this made no difference.
    Has anyone got any clues on this?
    It's a Dell Studio 15, i5, 4Gb RAM, Windows 7 Ultimate, 400 Gb free space.

    There may be some clue in that while I was briefly able to use the application I added a few picture files and put them on the timeline.
    Tidying up the pictures on the pc into one folder meant that one of these was no longer where Premiere Elements 8 expected it to be and on one of my trys at getting it to run again (with the same multiple attempts at opening a project as before) it did actually display a dialog asking for the missing file and then wonder of wonders the monitor window, timeline, etc, appeared as before.
    This meant that the menus are accessible at present and so I've been able to check the background rendering preference and it is set to off.
    Once I close the application down again I'm sure it's going to behave as before, ie blank screen again. True enough just tried this and it's back to blank screen mode. I didn't save the project so the files are still 'missing'.
    BTW I've already turned off Autoanalyse in the Organiser.

  • SkillBuilders Modal Page... closes immediately after loading

    I would like to use the Modal Page plug-in from http://www.skillbuilders.com .*
    I installed the two sample applications from their web site with different results:
    The employee example works fine.
    The example with the modal feedback worked fine yesterday, but today it shrinks (after loading normally) so that I can't see anything but the bar with the window name and the close button.
    In my own application it's even worse:
    I have links in a table which should open a modal window on click.
    I tried several settings, but the only thing that's happening is that the window closes immediately after loading and showing the page for a half a second (or not at all).
    Leaving the "Auto-close On Element Selector" empty did not work. The default value "div#success-message" kept coming back until I replaced it with "null". But still no effect.
    Does anyone have any idea what could cause this behaviour?
    Best regards,
    Sabine
    The Security Settings for all three applications:
    Cache: Enabled
    Embed in Frames: Allow

    In the meantime I had the problem that the window didn't close at all, but I think I figured it out.
    So if the Modal Plug In does not work properly, check the following:
    <li>Does every process that should close the window have a 'Success Message' defined?
    <li>In the unconditional branch, is "include process success message" checked?
    <li>In the dynamic action, is "Auto-close On Element Selector" set to "div.t1success" in the true action?
    BTW: The "shrinking problem" described in the first post still exists - in IE. In Firefox, it works fine.
    Best regards,
    Sabine

Maybe you are looking for