开发者

Can I load flex components asynchronously?

开发者 https://www.devze.com 2023-04-10 12:30 出处:网络
I have a开发者_如何学C flex application that shows information gathered from different external services by using rest api. Some of them are resource intensive, take longer to response. Is there any w

I have a开发者_如何学C flex application that shows information gathered from different external services by using rest api. Some of them are resource intensive, take longer to response. Is there any way I can load the different components asyncronously?


ActionScript (Flex) executes asynchronously by default. So, if you make concurrent calls to a service, ensure that your code handles the results appropriately (via Event handlers). By default, making a request to a web service operation that is already executing does not cancel the existing request.

So, simply invoke your services, and register (result/failure) event handlers on them to capture their responses, and load the components accordingly.

0

精彩评论

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

关注公众号