I have a custom progres开发者_如何转开发s bar I want to show loading the data instead of the showBusyCursor in Flex 4. Is it possible to use the custom progress bar instead of the busy cursor?
Here is the piece of code that currently uses the showBusyCursor
<npcsservice:NpcsService id="npcsService" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
Please set showBusyCursor to false. Display your progress bar until the service is returned. Hide it in result handler and fault handler.
It depends on what you are doing with the service to update the custom progress bar correctly. If you are uploading a file to the server, you can use this example and update the progress bar accurately based on the size of the file uploaded. You can view the source of this example and change it according to your needs.
精彩评论