I'm writing and mp3 player in actionscript for my web site. The problem is, it needs also to download files. What i mean it'll download mp3 files from remote server via URLLoader.load() function probably. AS is not multithreaded so when downloading it blocks.
When thinking of solution I figured out, I can write to separate, let's call it modules(.swf) and one will be music player, other downloader and they can communicate via javascript.
How do I solve this problem regarding communication between .swfs?
URLLoader.load() will not block the UI. However, the browser and flash player will only allow 2 open connections to the same domain name so you will only be able to play one song, and download 1 song at a time.