Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><em><strong>Sorry giving response 2 years later but why not if it may help someone...</em></strong></p> <p>You need to do some adaptation when using progress bar with remoting services (RemoteObject, HTTPService, WebService,...). That is :</p> <ul> <li><p>Set ProgressBar's <strong>mode</strong> property to the static constant <strong>ProgressBarMode.EVENT</strong></p></li> <li><p>Set ProgressBar's <strong>source</strong> property to some custom object you have implemented and which extends from <strong>EventDispatcher</strong></p></li> <li><p>Use your custom source object to <strong>manually dispatch</strong> event instance of class <strong>ProgressEvent</strong> with the type of <strong>ProgressEvent.PROGRESS</strong> to control the fill of the progress bar</p></li> <li><p>You set <strong>ProgressEvent.bytesLoaded</strong> and <strong>ProgressEvent.bytesTotal</strong> to control the fill i.e <strong>ProgressEvent.bytesLoaded LESS THAN ProgressEvent.bytesTotal</strong> when calling your remote service and <strong>ProgressEvent.bytesLoaded EQUAL TO ProgressEvent.bytesTotal</strong> when your remote service returns (in ResultEvent.RESULT listener for example)</p></li> <li><p>You can optionally set ProgressBar's <strong>indeterminate</strong> property to <strong>true</strong> since remoting are often async action with <strong>indeterminate duration and amount of returned data</strong>. Then you'll use <strong>fake values</strong> for <strong>bytesLoaded</strong> and <strong>bytesTotal</strong></p></li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload