-
1. Re: Concurrency (ActionScript Workers) Bug in Flex Project??
mkagita Aug 12, 2012 12:12 AM (in response to dance_in_hell)Few questions.
are you on windows or mac? Which OS? Are you running this in the browser? If so which browser and what version?
You are using Beta 2 from
http://labs.adobe.com/downloads/flashplayer11-4.html, correct?
-
2. Re: Concurrency (ActionScript Workers) Bug in Flex Project??
robert.kwon Aug 12, 2012 12:29 AM (in response to dance_in_hell)Can you share your project with us? I want to take a look at the code to see what might be happening.
Do you get the same results when you try to run the the .swf that was already provided from examples/bin/HelloWorld/HelloWorld.swf?
You should see:
inside primordial worker
Current State: running
Background received: Hi from Main
-
3. Re: Concurrency (ActionScript Workers) Bug in Flex Project??
dance_in_hell Aug 12, 2012 9:09 AM (in response to mkagita)thank mkagita
i download http://labs.adobe.com/downloads/flashplayer11-4.html again
run Flex project , trace different :
inside primordial worker
Current State: running
i have no see Current State: terminated
and i have no see Background received: Hi from Main also
my system is windows7(64), ie8
why? ActionScript Workers no spport Flex Project??
i upload my Flex project in this link:
www.sngogame.cn/TestWorker.rar
can u help me ?
-
4. Re: Concurrency (ActionScript Workers) Bug in Flex Project??
dance_in_hell Aug 12, 2012 9:10 AM (in response to robert.kwon)thank boert.kwon
i can see my Flex project .swf file in the bin folder
but i can see Background received: Hi from Main trace -_-!
my trace :
inside primordial worker
Current State: running
my system is windows7(64), ie8
why? ActionScript Workers no spport Flex Project??
i upload my Flex project in this link:
www.sngogame.cn/TestWorker.rar
can u help me ?
-
5. Re: Concurrency (ActionScript Workers) Bug in Flex Project??
robert.kwon Aug 12, 2012 11:36 AM (in response to dance_in_hell)The problem is that when you use this.loaderInfo.bytes, it takes the SWF bytes of everything in the main SWF including the Flex/Spark components, which some are prevented from working in a background worker. So, when you create a background worker based on the SWF bytes of the main worker, you'll encounter a run time error. Using Flash Builder 4.7, you'll see this right away as it has support for debugging Workers in the background. I've taken the liberty to fix your code to make it work. You'll have to create a separate SWF with all of your background worker code and then use a URLLoader object to load that SWF in to create your worker.
I'll attach the project to this thread.
-
6. Re: Concurrency (ActionScript Workers) Bug in Flex Project??
robert.kwon Aug 12, 2012 11:42 AM (in response to robert.kwon)Here is the updated project: https://www.dropbox.com/s/o50s10wwwg2nsdd/TestWorker.zip
Let me know if you have any issues.
-
7. Re: Concurrency (ActionScript Workers) Bug in Flex Project??
dance_in_hell Aug 13, 2012 4:37 AM (in response to robert.kwon)hi robert.kwon
i down load your code :https://www.dropbox.com/s/o50s10wwwg2nsdd/TestWorker.zip
flex can run it succeed ,haha
you code was very helpful.
Thank you for your help!!


