Progress bar in an indeterminate state

is it possible to put the progress bar in an indeterminate state? There are moments where my program reached a certain subroutine that I can't say before how long the most related is going to be... .it must be a way to do this easily, but I can't seem to find it anywhere.

Herea recent thread with a few examples.

Tags: NI Software

Similar Questions

  • Create a progress bar of defragmentation PDM

    I'm saving up large amounts of data (32 analog channels 5 usb votlage Renault all plugged into the same computer). Samples of continues to 100Samples per second for 1 hour or more. The PDM save the file is huge at the end of the program so when I hit stop the whole thing hangs then that labview executes the final block of defragmentation DDHN. I don't necessarily mind it, but it would give me so much peace of mind if I had some sort of defrag in progress progress bar that pops up when this happened. Is there a way to do this? How can I find the current state of the VI and that thread to an indicator of progress bar?

    In fact, I think that I just, if I replace the path and error of the son with shift registers, it passes the correct path to the beginning of the loop again! is that correct?

  • The progress bar just kept scanning without generating a list of updates or error messages

    I have a hp G70-463 CL portable 2009. It works well until March 2016 when it could not download updates Windows 7 Ultimate. The progress bar just kept scanning without generating a list of updates or error messages. I reinstalled Windows, but this does not solve the problem. The PC otherwise works fine. I can download the software successfully. What is going on?

    You can reset the Windows Update components by running the Fixit on this page. But if there is malware present, she will continue to reset the connection to the update servers:

    How to reset the Windows Update components

    http://support.Microsoft.com/kb/971058

    Suggest you download and save the Fixit. Then configure the system before the clean boot by running:

    How to troubleshoot a problem by performing a clean boot in Windows Vista/Windows 7

    http://support.Microsoft.com/kb/929135

    Once the Fixit has been downloaded and the system is started in the pure State, check that the native Windows Firewall is now on if a 3rd party firewall has been used previously. Now run the Fixit and choose the default mode. Restart once it's done and see if the system can be connected to the update servers. If he can't, then rerun the Fixit and choose aggressive mode. Turn it back on when he finished the race and updates.

    I suggest before you stop and install the updates, disconnect from the Internet, first.

  • Update the progress bar

    Hello

    When the records are saved in the database SQLite in my application I want to show the progress, because it may take a few seconds, if the amount of data to be backed up is large. So I defined a variable of the ProgressBar:

    private var _pbSaveContent:ProgressBar = new ProgressBar();
    

    Initializing the user interface I define the attributes and add it to the scene, but still manage not visible (I do that only when the feature there is place to save records is requested):

    with (_pbSaveContent)
    {
        width = 624;
        x = 200;
        y = 250;
        height = 10;
        visible = false;
    }
    
    addChild(_pbSaveContent);
    

    Now, when the function is executed to save records in the database I first make visible progress (among others) bar:

    _pbSaveContent.visible = true;
    

    then count the number of records to be created and then use this number to update the progress bar after every saved recording:

    _pbSaveContent.progress += _numProgressStep;
    

    I was expecting to the progress bar would be updated every time with the above statement, but the progress bar (filled to 100%) is displayed after all records have been created.

    How can I solve this?

    Unless there is a way to force the Flash to operate on a synchronous cycle frame, you cannot get this to work without changing your stuff of SQLite to use asynchronous support.  I never heard speak in a kind of routine "updateNow()" who would be able to do this, but I'm not a Flash developer for a long time so I could easily just have heard of him yet.

    Search the openAsync() call in the SQLConnection documentation to learn more about the switch to asynchronous SQLite stuff, where the database work is done in another thread and does not prevent your UI to update normally.

  • Help with progress bar.

    Hi, I tried to add a few different progress bars to this script and I get errors.  Can someone please?   I at the moment at the beginning of the Script, but I got it at the end as well with no luck.  Here's the Code.

       #targetengine "AutoStartScript" 
       
    // Save and open information      
        app.addEventListener( "beforeSave" , doTextFrameOnPageOne );  
        app.addEventListener( "beforeSave" , doZeroPoint );
        app.addEventListener( "afterOpen" , doZeroPoint );
    
    // -----------------> Progress Bar<-------------------    
        app.scriptPreferences.enableRedraw = true
        var found = Array(50);
        var w = new Window('palette');
            w.add ("progressbar", undefined, start, stop);
            w.pbar = w.add('progressbar', undefined, 0, found.length);
            w.pbar.preferredSize.width = 300;
            w.show();
        for(var i = found.length-1;i>-1;i--){
            w.pbar.value = found.length-i;
            $.sleep(20);
            }
        
     // Reset the Zero Point on documents.   
        function doZeroPoint()
            {
               app.documents[0].zeroPoint = [0,0]; 
            
          
    // Create New Layer      
        function addLayer(doc, name) {  
        try{  
                var layer = doc.layers.itemByName(name);  
                if(layer && layer.isValid) {  
                         return layer;  
                    } else {  
                var myLayer = doc.layers.add();  
                myLayer.name = name; 
                
                    return myLayer;  
            }  
          } catch(e) {  
         }  
        }  
          
    // Create Text Frame      
        function addTextFrame(doc, layer, name) {  
            var myBlendingSettings = { blendMode : BlendMode.OVERLAY };        
            var myTransparencySettings = { blendingSettings : myBlendingSettings };     
              
            var tf = doc.textFrames.itemByName(name);  
            if(tf && tf.isValid) {        
                tf.remove();  
            }  
            tf = doc.textFrames.add(layer, LocationOptions.UNKNOWN, {name: name, fillColor :"Yellow", fillTint: 20, transparencySettings : myTransparencySettings, geometricBounds: ['0in','-5.45in','1.45in','-.75in'] });        
                  return tf;  
        }  
          
    // Create Table      
        function addTable(tf) {  
            var myTable = tf.texts[0].tables.add        
                (        
                   {         
                     // Number of Rows and Columns.      
                      bodyRowCount : 6 ,         
                      columnCount : 2         
                              
                 }        
            );       
          
        return myTable;  
            }  
          
          
        function addVariable(doc, name, value) {  
            var v = doc.textVariables.itemByName(name);  
            if(v && v.isValid)  
                return;  
          
            v = doc.textVariables.add({name:name, variableType:VariableTypes.CUSTOM_TEXT_TYPE});  
            v.variableOptions.contents =  value;      
        }  
          
          
        function doTextFrameOnPageOne(event)        
         {       
            var doc = event.target;     
            if(!(doc && doc.constructor.name == "Document")) {  
                return;  
            }  
                
    // Create New Layer   
            var myLayer = addLayer(doc, "SaveInfo");  
               
            var columnOneContentsArray = [                  
                 
                 "Document:" ,        
                 "User Name:",       
                 "Computer Name:",      
                 "Date Modified:",            
                 "Date Output:",      
                 "Date Created:",      
                 "Output Date:"        
            ];        
                    
            var columnTwoContentsArray = [     
                ];     
                       
            var tf = addTextFrame(doc, myLayer, "SaveInfo");  
    // Table Properties
            var myTable = addTable(tf);  
                setColumnWidthsAndAlignments(myTable)  
        function setColumnWidthsAndAlignments(tableObj)  
           {  
            var myWidths=[1.35, 3.32];  
            var myAlignments=[Justification.LEFT_ALIGN,Justification.LEFT_ALIGN];  
            var numberOfColumns=tableObj.columns.count();  
            for (c=0;c<numberOfColumns;c++)  
           {  
                myTable.columns[c].width=myWidths[c];  
                myTable.columns[c].cells.everyItem().texts.everyItem().justification=myAlignments[c];  
           }  
          }       
    // Create New Text Variables and Variable Options.
            var md = doc.textVariables.itemByName("Output Date");
                md.variableOptions.format = "MMMM dd, yyyy hh:mm a";
            var md = doc.textVariables.itemByName("Creation Date");
                md.variableOptions.format = "MMMM dd, yyyy hh:mm a";
                tv = doc.textVariables.item("Users Name");    
                !tv.isValid && tv = doc.textVariables.add({name:"Users Name", variableType:VariableTypes.CUSTOM_TEXT_TYPE});            
                tv.variableOptions.contents =  String( getAppUserName() );  
                tvL = doc.textVariables.item("CLN");   
                !tvL.isValid && tvL = doc.textVariables.add({name:"CLN", variableType:VariableTypes.CUSTOM_TEXT_TYPE});    
                tvL.variableOptions.contents =  String( getLogInUserName() ); 
              
                       
    // Placing Text variable information in tables             
            var R1, R2, R3, R4, R5, R6;       
                     
                myTable.columns[0].contents = columnOneContentsArray;        
                myTable.columns[1].contents = columnTwoContentsArray;        
            var cell0OfColumn2insertionPoint1 = myTable.columns[1].cells[0].insertionPoints[0];       
            var R1 = cell0OfColumn2insertionPoint1.textVariableInstances.add(LocationOptions.AFTER, cell0OfColumn2insertionPoint1);            
                R1.associatedTextVariable = doc.textVariables.itemByName("File Name");       
            var cell1OfColumn2insertionPoint1 = myTable.columns[1].cells[1].insertionPoints[0];      
            var R2 = cell1OfColumn2insertionPoint1.textVariableInstances.add(LocationOptions.AFTER, cell1OfColumn2insertionPoint1);    
                R2.associatedTextVariable = doc.textVariables.itemByName("Users Name")         
            var cell2OfColumn2insertionPoint1 = myTable.columns[1].cells[2].insertionPoints[0];          
            var R3 = cell2OfColumn2insertionPoint1.textVariableInstances.add(LocationOptions.AFTER, cell2OfColumn2insertionPoint1);            
                R3.associatedTextVariable = doc.textVariables.itemByName("CLN");         
            var cell3OfColumn2insertionPoint1 = myTable.columns[1].cells[3].insertionPoints[0];        
            var R4 = cell3OfColumn2insertionPoint1.textVariableInstances.add(LocationOptions.AFTER, cell3OfColumn2insertionPoint1);            
                R4.associatedTextVariable = doc.textVariables.itemByName("Modification Date");       
            var cell4OfColumn2insertionPoint1 = myTable.columns[1].cells[4].insertionPoints[0];       
            var R5 = cell4OfColumn2insertionPoint1.textVariableInstances.add(LocationOptions.AFTER, cell4OfColumn2insertionPoint1);            
                R5.associatedTextVariable = doc.textVariables.itemByName("Output Date");       
            var cell5OfColumn2insertionPoint1 = myTable.columns[1].cells[5].insertionPoints[0];      
            var R6 = cell5OfColumn2insertionPoint1.textVariableInstances.add(LocationOptions.AFTER, cell5OfColumn2insertionPoint1);            
                R6.associatedTextVariable = doc.textVariables.itemByName("Creation Date");         
            }        
          
          
    //  Computer User Name          
            function getLogInUserName()        
         {        
              
             var userNameOSX = $.getenv("USER");        
             var userNameWindows = $.getenv("USERNAME");        
                    
                if(userNameWindows == null){return userNameOSX}        
                else{return userNameWindows};        
                    
            }        
    // Application Name           
            function getAppUserName() 
            {        
                return app.userName;        
        }
    

    Thanks for any help you can give.  I had the 'progress bar' above ScriptUI for Dummies, I believe that sound of Peter.

    Have you tried to add a statement of w.update () after each time that the progress bar is incremented? (See the bug progress bar.) (Summary of the situation) )

    Ariel

  • Status/progress bar based on a field value

    Friends, I have a field in a form called 'STATE '. This status has values such as Open project, submitted for approval, approved, completed, closed.    Based on the current value of the situation, I wanted to show a status/progress bar just below the navigation bar that displays the current status.

    Can anyone help?

    George

    Hello

    You can use the built in the 'List of horizontal progression Assistant' list template and create a list with your values, then create a region for this list where you want.

    Thank you

    Mohannad

  • Tage of the percent of completion in the progress bar

    Hi Forum,

    I have a doubt about obtaining 'percentage of completion in the progress bar', while the progress bar is running.

    I'll try to find the percent complete of myFound(); in the progress bar.

    Could someone help with that...

    app.findTextPreferences.findWhat = "UNSCHEDULED STATEMENT"

    app.changeTextPreferences.changeTo = "Reverte;

    app.changeText ();

    var FO = app.changeText ();

    var list = [Tf];

    var l is new window ("the palette");.

    run var = progress_bar (w, list.length);

    for (var i = 0; i < list.length; i ++)

    {

    Progress.Value = i + 1;

    user functions

    $.sleep (400);

    }

    Progress.parent.Close ();

    function progress_bar (w, shutdown)

    {

    pBar var = w.add ("progressbar", not defined, 1, stop);

    pbar.preferredSize = [300,20];

    w.Show (list);

    return pbar;

    }

    Also when adding to the progression of script inside the loop to find the task to find and change is getting delayed.

    Thank you

    rkids.

    Hello

    Assuming that both files are defined in some way...

    myPath1 = "~/Desktop/testCFolder";     // another way to define?
    myPath2 = "~/Desktop/testPFolder";     // another way to define?
    mFolderToCopy = Folder(myPath1);
    mFolderToPaste = Folder(myPath2);
    if (!mFolderToCopy.exists || !mFolderToPaste.exists)
              {
              alert ("No copy/paste folder found");
              } else {
              mFiles = mFolderToCopy.getFiles("*");     // mask files
              action(mFiles, mFolderToPaste);
              }
    
    function action (arr, destFolder) {
         progressWin = new Window ("palette", "" , [50, 150, 384, 240]),
         progressBar = progressWin.add ("progressbar", [12, 12, 312, 32], 0, arr.length -1),
         progressText = progressWin.add("statictext",[12, 52, 312, 72], "copying started");
              progressWin.show();
              for ( var k = 0; k < arr.length; k++) {
                        progressBar.value = k + 1;
                        arr[k].copy(destFolder.fullName + "/" + arr[k].name);
                        progressText.text = "copying file: " + arr[k].name + " (" + Math.round( (k+1)/arr.length*100 ) + " of 100%)";
                        }
              progressWin.close();
              }
    

    In the case of $. sleep() ==> you don't need to actually use it.

    It could be placed just to slow the process and make you see that a window of the progressBar changes.

    No other reason.

    Rgds

    Jarek

  • in IE progress bar problem with on call for application

    I have several on the enforcement of the application process that I have called from javascript. The application process call pl/sql procedures in turn. Some of the procedures can take up to 10 seconds to complete, and while they are running, the screen just to freeze so that the user does not know that they are actually running. So, I would add some kind of a progression or Hourglass bar or an indication that things are moving.

    So I found the instructions of Re: hourglass display when the Page is processing . This works fine in Firefox but not in Internet Explorer.

    My footer text:

    < Style > #AjaxLoading {padding: 5px; do-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; ">..." Treatment...
    < img src = "" #IMAGE_PREFIX #processing3.gif "id ="wait"/ >"
    < / div >

    My javascript:

    function create_invoice (pMilestoneNumber) {}
    Okay var = ("are confirm you sure you want to charge this invoice?");
    get var = new htmldb_Get (null, $v ('pFlowId'), 'APPLICATION_PROCESS is P110_CREATE_INVOICE', $v ('pFlowStepId'));
    If (! OK)
    return;
    html_ShowElement ('AjaxLoading');
    get.addParam('x01',pMilestoneNumber);
    gReturn = get.get ();
    Alert (gReturn);
    get = null;
    doSubmit();
    }

    In Firefox, the progress bar is displayed immediately after the user clicks ok to the confirmation request. In Internet Explorer, it does not appear until the application process of return with the return message.

    Any help would be greatly appreciated.

    Hello

    OK, it wasn't - it is just because there was a bug in my process it seemed that it worked. Sorry end that.

    So I re-tested, and the same problem that you experience will occur if you use Chrome. I think the best way is to use the technique suggested in the original thread that you connected. I so like this:

    function AjaxTest(){
         if(confirm("Are you sure you want to bill this Invoice?")){
              html_ShowElement('AjaxLoading');
              var get = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=IE_TEST',$v('pFlowStepId'));
              gReturn = get.GetAsync(g_AsyncReturn);
         }
    }
    
    function g_AsyncReturn(){
         if(p.readyState == 4){
              alert(p.responseText);
         }else{
              return false;
         }
    }
    

    That seems to work for me.

    In addition, you will notice in the example page, it shows the AjaxLoading element when loan State == 1, but in my experience, it doesn't work well not with chrome, so who's right for which I left out of the call back and just show before the process begins.

    Van
    Trent

  • Need help with advanced actions progress bar

    I need a guru of the advanced Actions! Someone at - he needed a challenge?

    I'm trying to recreate this tip action: http://blogs.adobe.com/captivate/2011/10/show-me-the-progress-bar.html show me the progress bar! By Dr. jerome Pooja

    I thought I got it and did this correctly, but when I try to use TI - nothing happens. (that is, I click on the box click to select an option, and nothing happens). I have Dr. Jaisingh tweeted a few times but received no response.

    Someone of you are willing to take a look at my file to see where I have gone wrong? Once I get that worked, I'd be happy to share the file to all who love her.

    As a bonus question: I would like to place this interaction in the middle of a module - but maybe that's a problem as the progress bar is set to show the rest of the project. Someone at - it a way to avoid this?

    Big thanks in advance!

    OK, think I found it, even after blogging about it but this post has not been read that much. In chronological order, I'll tell what I did.

    First of all, I cursed the lack of discipline, labelling, sorry, but said that Pooja on this subject more than once, why different labels for the objects used in the source PSD file, it is more difficult to read and analyze.

    All the 'cells' had in Fade transitions / Fade out. If you set to display for the rest of the project, these transitions and possibly apply effects will repeat on each slide where these objects are visible! So I started with the deactivation of these transitions.

    As Andy pointed out, and I've confirmed: stock Standard Advanced have a Continue statement. If I got it correctly, and the user can choose only once, even a go to the next slide would be better.

    That I started to suspect the use of the master slide. There is a partially transparent image on this slide model. This is the blog that I mentioned first:

    Order of the stack and master slides

    My solution is to merge the partially transparent image with the background on the slide master.

    Home work done! Everything works OK

    Lilybiri

  • Progress bar to complete the work on a slide show

    Hey people,

    Here's my idea:

    In current history as I build the user must complete 4 tasks from a given slide, let's call it 'A' slide.  Each task is essentially a button that will take the user to another slide, activity, and then return the user to slide "A".  On the trip back to 'A' button on which they clicked on will be disabled so that they are not yet of this activity.  That activities are completed, I want to have a progress bar at the bottom of the screen to show the user how far this time upward they are.  Once the progress bar is full, it will be a key to the next part of the story.

    Here's what I already know:

    I can run the advanced top 1.  Disable the buttons full

    2 set the variables that become a progress bar button (hide the previous bar and activate / display button)

    Here is where I get lost:

    I think I need to put up and/or logic to show variables.  In my head, making the progress bar '25% complete' show would have such as logic below.  Note: all variables are set to 0 by default, the term defines variables to 1.

    IF (Variable1) <>0 OR

    <>(Variable2) 0 OR

    <>(Variable3) 0 OR

    <>(Variable4) 0 OR

    SEE the ProgressBar25

    But how I'd get 50% progress bar to display everything by hiding the progress bar of 25%?  It would be something like:

    IF (Variable1) <>0 AND (Variable2) <>0 OR

    (Variable1) <>0 AND (Variable3) <>0 OR

    (Variable1) <>0 AND (Variable4) <>0 OR

    (Variable2) <>0 AND (Variable3) <>0 OR

    (Variable2) <>0 AND (Variable4) <>0 OR

    (Variable3 <>0 AND (Variable4) <>0 OR)

    SEE the ProgressBar50

    Hide ProgressBar25

    All conditional statements must be in the same action so that when the user enters the slide, he would hide / disable / view the corrent information?  I am that overthinking and missed an easier way to do this?

    Thank you

    Cody

    Such a complex condition will be not functional... experience with complex conditional actions.

    Is it really necessary to hide the previous progress bars? Are they in the same place and you stack them from 25% at the bottom and 100% on top, each second bar cover up previous No., will have to hide.

    Tried to get out, but my intuition says that to add an additional variable, sort of a v_counter counter that keeps the number of tasks has been completed. Then, create an action of condtional with several decisions:

    IF v_counter = 1 see the ProgressBar25

    IF v_counter = 2 see the ProgressBar50

    IF v_counter = 3 see the ProgressBar75

    IF v_counter = 4 see the ProgressBar100

    Sorry, always try to simplify

    Lilybiri

  • SWFLoader and progress bar

    Hello!

    I try to understand how the ProgressBar.

    I read http://help.Adobe.com/en_US/Flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7d8c.html#WS2d b454920e96a9e51e63e3d11c0bf63b33-7f99

    but this is not enough.

    Indeed, I have a list and a SWFLoader who charge that it is chosen in the list:

    <? XML version = "1.0" encoding = "utf-8"? >
    " < = xmlns:fx s:Application ' http://ns.Adobe.com/MXML/2009 "
    xmlns:s = "library://ns.adobe.com/flex/spark".
    xmlns:MX = "library://ns.adobe.com/flex/mx".
    >
    < fx:Script >
    <! [CDATA]
    [Bindable]
    public var selectedListItem:Object;

    []] >
    < / fx:Script >

    < fx:Declarations >
    < fx: Model id = "anim" >
    States <>
    < label State = data="animations/flex-ang.swf"/ "Anguinéa" >
    < label State = "Retrograde motion" data="animations/flex-astro.swf"/ >
    < label State = "Rod of Bérard" data="animations/FLEX-ber.swf"/ >
    < / states >
    < / fx: Model >
    < / fx:Declarations >

    < s:Panel title = 'batch of animations.
    Width = "300" x = "600" y = "50" >
    < s:VGroup left = "10" right = "10" top = low "10" = "10" >
    < s:Label text = "select an animations" / >
    < s:Label = "Currently" text {selectedListItem.data}'"/ >"
    < mx:List id = 'source' width = '100% ', color = 'blue '.
    dataProvider = "{anim.state}" "
    change = "selectedListItem = list (event.currentTarget) .selectedItem" / >
    < / s:VGroup >
    < / s:Panel >

    < s:Panel = "30" x y = "50" width = "510" height = "580" >
    < mx:Canvas >
    < mx:ProgressBar width = "200" source = "animation" mode = "surveyed" / >
    < / mx:Canvas >
    < mx:SWFLoader id = source = "{selectedListItem.data 'animation'} ' autoLoad ="true"/ >"
    < / s:Panel >
    < / s:Application >

    But I do not understand what I write in the tag of the source of the progress bar.

    Can someone explain to me?

    Thank you.

    Sorry, the forum software filter special characters.  I would try again.  ProgressBar source must be:

    source = "{entertainment}.

    You want to bind the ProgressBar source for events of the SWFLoader which will be distributed during the loading of a SWF again.

  • Flex 3: showing a progress bar during the Application loading time

    Hello

    I have 3 end Flex before Application.

    Currently, at the beginning of the Application, its shows a blank white page.
    I want to have a progress bar on this effect.

    I saw this thing

    < mx:ProgressBar id = "progressBar" minimum maximum = "100" = "100" = "manual" mode
    Label = "5%" labelPlacement = 'bottom' x = '207' y = '299' >
    < / mx:ProgressBar >

    I saw an example of using ProgressBar with Image, providing the source of the image of the ProgressBar?

    Could any body please let me know as how to provide my < mx:Application > as a source for this
    ProgresBar.

    Help, please.

    Thank you.

    Here's a brand preloader component that I created that allows you to have the text and image in the proloader:

    ---com/stardustsystems/preloader/BrandedPreloader.as---

    package com.stardustsystems.preloader
    {
      import flash.display.DisplayObject;
      import flash.geom.Rectangle;
      import flash.text.TextField;
      import mx.graphics.RoundedRectangle;
      import mx.preloaders.DownloadProgressBar;
    
      public class BrandedPreloader extends DownloadProgressBar{
        private var _title:String = "DEFAULT APPLICATION TITLE";
        private var _titleObj:TextField;
        private var _titleX:Number = 80;
        private var _titleY:Number = 15;
        private var _titleWidth:Number = 165;
        private var _titleHeight:Number = 32;
        private var _titleTextColor:Number = 0xFFFFFF;
        private var _marquee:String = "DEFAULT MARQUEE";
        private var _marqueeObj:TextField;
        private var _marqueeX:Number = 80;
        private var _marqueeY:Number = 80;
        private var _marqueeWidth:Number = 165;
        private var _marqueeHeight:Number = 32;
        private var _marqueeTextColor:Number = 0xFFFFFF;
        private var _logoX:Number = 15;
        private var _logoY:Number = 15;
        private var _borderRectX:Number = 0;
        private var _borderRectY:Number = 0;
        private var _borderRectWidth:Number = 260;
        private var _borderRectHeight:Number = 120;
        private var _borderRectCornerRadius:Number = 4;
        private var _labelRectX:Number = 80;
        private var _labelRectY:Number = 55;
        private var _labelRectWidth:Number = 165;
        private var _labelRectHeight:Number = 16;
        private var _barRectX:Number = 80;
        private var _barRectY:Number = 72;
        private var _barRectWidth:Number = 165;
        private var _barRectHeight:Number = 6;
        private var _barRectCornerRadius:Number = 0;
        private var _barFrameRectX:Number = 80;
        private var _barFrameRectY:Number = 73;
        private var _barFrameRectWidth:Number = 165;
        private var _barFrameRectHeight:Number = 4;
    
        // The logo file should be in the same directory as this file.
        // Embed the logo file because using Loader is not efficient,
        //   because a Loader would load with the application, and we
        //   need it to load before the application, because it is
        //   displayed in the preloader.
        [Embed("SDSLogo1.png")]
        [Bindable] public var logoCls:Class;
        private var logoDO:DisplayObject;
        // Config file allowing configuration of various areas of the preloader.
        [Embed("config.txt", mimeType="application/octet-stream")]
        [Bindable] public var configCls:Class;
        private var configObj:Object;
        private var configProps:Object;
    
        public function BrandedPreloader(){
          super();
          // Load the config file.
          configObj = new configCls();
          // Parse the config property key/value pairs.
          configProps = getConfigProps(configObj.toString());
          // Apply the config properties.
          applyConfiguration();
        }
    
        private function applyConfiguration():void{
          if(configProps.title){
            _title = configProps.title;
          }
          if(configProps.marquee){
            _marquee = configProps.marquee;
          }
          if(configProps.titleX){
            _titleX = configProps.titleX;
          }
          if(configProps.titleY){
            _titleY = configProps.titleY;
          }
          if(configProps.titleWidth){
            _titleWidth = configProps.titleWidth;
          }
          if(configProps.titleHeight){
            _titleHeight = configProps.titleHeight;
          }
          if(configProps.titleTextColor){
            _titleTextColor = configProps.titleTextColor;
          }
          if(configProps.marqueeX){
            _marqueeX = configProps.marqueeX;
          }
          if(configProps.marqueeY){
            _marqueeY = configProps.marqueeY;
          }
          if(configProps.marqueeWidth){
            _marqueeWidth = configProps.marqueeWidth;
          }
          if(configProps.marqueeHeight){
            _marqueeHeight = configProps.marqueeHeight;
          }
          if(configProps.marqueeTextColor){
            _marqueeTextColor = configProps.marqueeTextColor;
          }
          if(configProps.logoX){
            _logoX = configProps.logoX;
          }
          if(configProps.logoY){
            _logoY = configProps.logoY;
          }
          if(configProps.borderRectX){
            _borderRectX = configProps.borderRectX;
          }
          if(configProps.borderRectY){
            _borderRectY = configProps.borderRectY;
          }
          if(configProps.borderRectWidth){
            _borderRectWidth = configProps.borderRectWidth;
          }
          if(configProps.borderRectHeight){
            _borderRectHeight = configProps.borderRectHeight;
          }
          if(configProps.borderRectCornerRadius){
            _borderRectCornerRadius = configProps.borderRectCornerRadius;
          }
          if(configProps.labelRectX){
            _labelRectX = configProps.labelRectX;
          }
          if(configProps.labelRectY){
            _labelRectY = configProps.labelRectY;
          }
          if(configProps.labelRectWidth){
            _labelRectWidth = configProps.labelRectWidth;
          }
          if(configProps.labelRectHeight){
            _labelRectHeight = configProps.labelRectHeight;
          }
          if(configProps.barRectX){
            _barRectX = configProps.barRectX;
          }
          if(configProps.barRectY){
            _barRectY = configProps.barRectY;
          }
          if(configProps.barRectWidth){
            _barRectWidth = configProps.barRectWidth;
          }
          if(configProps.barRectHeight){
            _barRectHeight = configProps.barRectHeight;
          }
          if(configProps.barRectCornerRadius){
            _barRectCornerRadius = configProps.barRectCornerRadius;
          }
          if(configProps.barFrameRectX){
            _barFrameRectX = configProps.barFrameRectX;
          }
          if(configProps.barFrameRectY){
            _barFrameRectY = configProps.barFrameRectY;
          }
          if(configProps.barFrameRectWidth){
            _barFrameRectWidth = configProps.barFrameRectWidth;
          }
          if(configProps.barFrameRectHeight){
            _barFrameRectHeight = configProps.barFrameRectHeight;
          }
        }
    
        private function getConfigProps(configStr:String):Object{
          var retVal:Object = new Object();
          var linesArray:Array = configStr.match(/".*"/g);
          for each(var line:String in linesArray){
            line = line.substring(1,line.length-1);
            if(line != "0"){
              var parts:Array = line.split("$$$");
              if(parts.length==2){
                retVal[parts[0]] = parts[1];
              }
            }
          }
          // trace for debugging
          for(var key:String in retVal){
            //trace("key: " + key);
            //trace("value: " + retVal[key]);
          }
          return retVal;
        }
    
        override protected function createChildren():void{
          super.createChildren();
          // Attach the logo image.
          logoDO = new logoCls();
          logoDO.x = (stageWidth/2)-(borderRect.width/2)+_logoX;
          logoDO.y = (stageHeight/2)-(borderRect.height/2)+_logoY;
          addChild(logoDO);
    
        // Attach the title TextField.
        _titleObj = new TextField();
        _titleObj.x = (stageWidth/2)-(borderRect.width/2)+_titleX;
        _titleObj.y = (stageHeight/2)-(borderRect.height/2)+_titleY;
        _titleObj.width = _titleWidth;
        _titleObj.height = _titleHeight;
        _titleObj.selectable = false;
        _titleObj.defaultTextFormat = super.labelFormat;
        _titleObj.htmlText = _title;
        _titleObj.multiline = true;
        _titleObj.wordWrap = true;
        _titleObj.textColor = _titleTextColor;
        this.addChild(_titleObj);
      // Attach the marquee TextField.
        _marqueeObj = new TextField();
        _marqueeObj.x = (stageWidth/2)-(borderRect.width/2)+_marqueeX;
        _marqueeObj.y = (stageHeight/2)-(borderRect.height/2)+_marqueeY;
        _marqueeObj.width = _marqueeWidth;
        _marqueeObj.height = _marqueeHeight;
        _marqueeObj.selectable = false;
        _marqueeObj.defaultTextFormat = super.labelFormat;
        _marqueeObj.htmlText = _marquee;
        _marqueeObj.multiline = true;
        _marqueeObj.wordWrap = true;
        _marqueeObj.textColor = _marqueeTextColor;
        this.addChild(_marqueeObj);
        }
        // Determines the dimensions of the large rectangle for the preloader.
        override protected function get borderRect():RoundedRectangle{
          return new RoundedRectangle(_borderRectX, _borderRectY, _borderRectWidth, _borderRectHeight, _borderRectCornerRadius);
        }
        // Determines the dimensions of the rectangle for the "loading..." and "initializing..." string.
        override protected function get labelRect():Rectangle{
          return new Rectangle(_labelRectX, _labelRectY, _labelRectWidth, _labelRectHeight);
        }
        // Determines the dimensions of the rectangle for the preloader bar.
        override protected function get barRect():RoundedRectangle{
          return new RoundedRectangle(_barRectX, _barRectY, _barRectWidth, _barRectHeight, _barRectCornerRadius);
        }
        // Determines the dimensions of the frame rectangle for the preloader bar.
        override protected function get barFrameRect():RoundedRectangle{
          return new RoundedRectangle(_barFrameRectX, _barFrameRectY, _barFrameRectWidth, _barFrameRectHeight);
        }
      }
    }
    

    ---com/stardustsystems/preloader/config.txt---

    # Comments in this file should start with #
    # Entries in this file should be formatted as follows:
    #    - enclose entries in standard double-quotes (not locale specific double-quotes)
    #    - do not use double quotes within the entries (use single quotes)
    #    - entries are key/value pairs, with key and value separated by $$$
    #    - keys and values can only contain characters in ISO-8859-1 (English and latin characters)
    # The file should be saved in Windows ansi encoding. To support characters in other
    #   character sets, further enhancement is necessary.
    # config properties for the application title string
    "title$$$Image Browser"
    "titleX$$$80"
    "titleY$$$15"
    "titleWidth$$$165"
    "titleHeight$$$32"
    "titleTextColor$$$0xFFFFFF"
    # config properties for the application marquee string
    "marquee$$$Stardust Systems Application"
    "marqueeX$$$80"
    "marqueeY$$$80"
    "marqueeWidth$$$165"
    "marqueeHeight$$$32"
    "marqueeTextColor$$$0xFFFFFF"
    # config properties for the logo x and y
    "logoX$$$15"
    "logoY$$$15"
    # config properties for the border rectangle
    "borderRectX$$$0"
    "borderRectY$$$0"
    "borderRectWidth$$$260"
    "borderRectHeight$$$120"
    "borderRectCornerRadius$$$4"
    # config properties for the label rectangle
    "labelRectX$$$80"
    "labelRectY$$$55"
    "labelRectWidth$$$165"
    "labelRectHeight$$$16"
    # config properties for the preloader bar rectangle
    "barRectX$$$80"
    "barRectY$$$72"
    "barRectWidth$$$165"
    "barRectHeight$$$6"
    "barRectCornerRadius$$$0"
    # config properties for the preloader bar frame rectangle
    "barFrameRectX$$$80"
    "barFrameRectY$$$73"
    "barFrameRectWidth$$$165"
    "barFrameRectHeight$$$4"
    

    -BrandedPreloader.mxml-

    
    
      
      
      
        
          
          
          
        
      
      
        
          
          
          
        
      
      
        
          
          
          
        
      
      
        
          
          
          
        
      
      
        
          
          
          
        
      
      
        
          
          
          
        
      
      
        
          
          
          
        
      
      
        
          
          
          
        
      
      
        
          
          
          
        
      
      
        
          
          
          
        
      
      
        
          
          
          
        
      
      
        
          
          
          
        
      
      
        
          
          
          
        
      
      
        
          
          
          
        
      
      
        
          
          
          
        
      
      
        
          
          
          
        
      
    
    

    ----------------- states.xml -----------------

    
    
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
    
    

    If this post answers your question or assistance, please mark it as such. Thank you!

    http://www.stardustsystems.com
    Adobe Flex development and Support Services

  • CS3 JS progress bar function

    I am trying to create a progress bar function, but the code below creates 6 instances of the progress window rather than the update info in the first window.  I went for the loop process making progress work bars is the only way that it can be used or is it possible to tell if a window is open on if so update the bar and the news of this window?

    to call to the stand, I use stagesLeft ("search duplicates", 1)

    
    
    

    function stagesLeft(myText,stageVal){
       
        var myStop =6;
        var myPbValue = stageVal;
        var myWindow = new Window ( 'window',' Progress');
        var myProgressBar = myWindow.add ('progressbar', [12, 12, 350, 24], 0, myStop);
        var myStaticText = myWindow.add('statictext');
        myStaticText.bounds = [0, 0, 340, 20];
        myStaticText.alignment = "left";
       
            myWindow.show();
            myProgressBar.value = myPbValue;
            myStaticText.text = myText;
            myWindow.text = 'Stage '+ myPbValue + ' out of ' + myStop;

     

           
            if(myPbValue == 6){
            myWindow.close();
                }
        }

    ScriptUI needs time to get used to :-) A 'simple' progress bar was also my first try and I think that I made similar mistakes. But nothing to worry about.

    The reason why you get more than a window, of course, is that this line in your service:

    myWindow = new window...

    (and later myWindow.show ();)

    You must create the window (and in most cases, immediately Show it) somewhere at the beginning of your script in an initialization phase. Who will pop to the top of the window in the State you created. Check the variable containing the window a global, so you can access them even when you use functions to 'drive '.

    In your update loop, you only need to change the elements: myProgressBar.value, myStaticText.text and myWindow.text. ScriptUI is smart enough to check if items are on the screen and change them immediately.

    Only when you have finished processing, you call myWindow.close ().

  • Progress bar does not appear motion

    I have the attached class that extends from box and adds a ProgressBar to the area. When I created this as a MXML component, it worked fine and the movement of progress was displayed properly. However, when I converted it to a class AS, the motion is not displayed. Any ideas what's not here?

    Thank you.

    If someone else out there he cares, here is the solution. I added an event listener for the event creationComplete of the constructor to set the status of the indeterminate progress bar.

  • Progress bar get about 60% and stuck

    Hello

    I had difficulties with the last update of El Capitan - my imac will not re-start and could get stuck on the spinning wheel. I could turn it off with the power switch and turn it back on w/out the update and it works great except for chrome.

    Today I was asked to restart the update and I thought I'd give it a try. This time, he stops normally and looked like it will re-start! While she has been reset the progress bar froze on the gray apple screen and then the screen started to Flash. If anyone has any suggestions on how to fix this would be appreciated. Thanks in advance!

    Use the Combo Update 10.11.6:

    Apple - Support - downloads

    The Combo update is a complete installation, as opposed to an incremental "delta" update, so you have to overwrite all files are damaged or missing. It does not matter if you have previously applied. All your data and settings must be kept, but that said, you should always have a backup.

Maybe you are looking for