开发者

Is there a way to use a custom loading bar instead of a busy cursor in Flex 4?

开发者 https://www.devze.com 2023-02-14 19:35 出处:网络
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?

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号