简体   繁体   中英

Multi threading in flex mobile project

I want to download a video on mobile device through flex framework. For that reason I need to have support of multithreading so that I can download video in background. Unfortunately, Flex doesn't have multithreading support. Do you guys have any idea how can I do this? I am quite new with flex environment.

Thanks

It might be useful to see what, exactly, you are trying to achieve. What code are you writing that is blocking that you think you need multi-threading for?

Multi-threading is not available to you in Flex, mostly because it is not available on the Flash platform. (You can implement "Green Threading" if you absolutely need it, though.) All actions in Flex, however, that take any time or block are asynchronous so multi-threading isn't needed for most actions.

For instance, you do not need multi-threading to download content. Assuming you are using something like the HTTPService class, you simply build up your URL, send() the request, and get a callback when the data has been received.

If you want to display video, you usually do that in some sort of media player UI which presumably has already figured that out for you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM