In flashbulder4.6  the flash.system.Worker can`t work

I create a worker project  use the flashplayer11.8 ,but when i start debug the project ,the worker not work ,i don`t know the reason!
and this is my project code ,it`s provided by an opensource website;
package
import flash.display.Sprite;
import flash.events.Event;
import flash.system.MessageChannel;
import flash.system.Worker;
import flash.system.WorkerDomain;
import flash.utils.setInterval;
public class HelloWorldWorker extends Sprite
  protected var mainToWorker:MessageChannel;
  protected var workerToMain:MessageChannel;
  protected var worker:Worker;
  public function HelloWorldWorker()
    * Start Main thread
   if(Worker.current.isPrimordial){
    //Create worker from our own loaderInfo.bytes
    worker = WorkerDomain.current.createWorker(this.loaderInfo.bytes);
    //Create messaging channels for 2-way messaging
    mainToWorker = Worker.current.createMessageChannel(worker);
    workerToMain = worker.createMessageChannel(Worker.current);
    //Inject messaging channels as a shared property
    worker.setSharedProperty("mainToWorker", mainToWorker);
    worker.setSharedProperty("workerToMain", workerToMain);
    //Listen to the response from our worker
    workerToMain.addEventListener(Event.CHANNEL_MESSAGE, onWorkerToMain);
    //Start worker (re-run document class)
    worker.start();
    //Set an interval that will ask the worker thread to do some math
    setInterval(function(){
     mainToWorker.send("ADD");
     mainToWorker.send(2);
     mainToWorker.send(2);
    }, 1000);
    * Start Worker thread
   else {
    //Inside of our worker, we can use static methods to
    //access the shared messgaeChannel's
    mainToWorker = Worker.current.getSharedProperty("mainToWorker");
    workerToMain = Worker.current.getSharedProperty("workerToMain");
    //Listen for messages from the mian thread
    mainToWorker.addEventListener(Event.CHANNEL_MESSAGE, onMainToWorker);
  //Main >> Worker
  protected function onMainToWorker(event:Event):void {
   var msg:* = mainToWorker.receive();
   //When the main thread sends us HELLO, we'll send it back WORLD
   if(msg == "HELLO"){
    workerToMain.send("WORLD");
   else if(msg == "ADD"){
    //Receive the 2 numbers and add them together
    var result:int = mainToWorker.receive() + mainToWorker.receive();
    //Return the result to the main thread
    workerToMain.send(result);
  //Worker >> Main
  protected function onWorkerToMain(event:Event):void {
   //Trace out whatever message the worker has sent us.
   trace("[Worker] " + workerToMain.receive());

Theres' a forum for Flash Builder.
Unfortunately, this isn't it.

Similar Messages

  • Crystal Report Viewer (flash based) is displaying partial of the flash interface. It is working well on Firefox 3.6.7 and below but not in Firefox 3.6.8. It is also working well on Internet Explorer and Chrome and Safari. Please check if you can advise o

    Crystal Report Viewer (flash based) is displaying partial of the flash interface. It is working well on Firefox 3.6.7 and below but not in Firefox 3.6.8. It is also working well on Internet Explorer and Chrome and Safari. Please check if you can advise on this problem we are facing. Thank you.
    == This happened ==
    Every time Firefox opened
    == Crystal Report Viewer (flash based) is displaying partial of the flash interface. It is working well on Firefox 3.6.7 and below but not in Firefox 3.6.8. It is also working well on Internet Explorer and Chrome and Safari. Please check if you can advise on this problem we are facing. Thank you. ==
    == User Agent ==
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.0.249.78 Safari/532.5

    Reset the page zoom on pages that cause problems: '''View > Zoom > Reset''' (Ctrl+0 (zero); Cmd+0 on Mac)
    See [[Text Zoom]] and [[Page Zoom]] and http://kb.mozillazine.org/Zoom_text_of_web_pages
    You can try if it works if you disable OOPP (Out-Of-Process-Plugins) for Flash
    You can set the prefs dom.ipc.plugins.enabled.* to false on the about:config page to disable the plugin-container process.
    dom.ipc.plugins.enabled (currently false by default)
    dom.ipc.plugins.enabled.npswf32.dll (Flash)
    To open the ''about:config'' page, type '''about:config''' in the location (address) bar and press the Enter key, just like you type the url of a website to open a website.
    If you see a warning then you can confirm that you want to access that page.

  • I can not get the flash player plug in to work with Internet Explorer

    I can not get the flash player plug in to work with Internet Explorer

    Zoltan71 wrote:
    I just bought this computer. My Internet Explorer is version 11.0.1
    I have the box checked to Install new version automatically, but it has not done any upgrading.
    I can't get the computer to update anything as far as I can see.
    The flash plug in does work with the Crome browser but it will not work with Internet explorer.
    I looked in the manage add-ons and it says enabled.
    I also went into the safety tab and deselected
    Active X filtering.
    Restarted and still does not work.
    I need help.....
    Chrome uses a different and separate plug-in.
    There are things about IE you need to know, especially 11. Specifically:
    "User-Agent Strings"
    That doesn't mean a lot, I'm sure, but it's the root of your problems, and Flash Player has nothing to do with it.
    Microsoft "rewrote" the User-Agent Strings for the abomination they call their latest and greatest browser. User-Agent Strings are what websites use to identify the browser you're using and provide the proper content for it's browser engine, like ActiveX stuff, and Flash or HTML5 video. Thanks to the geniuses in Redmond, WA, the User-Agent Strings for IE11 (which has a Trident engine), ID it as either "Gecko" (Firefox) or "Webkit" (Chrome). Problem is: when the site the directs to the content for one of these two engines, the Trident engine in IE can't intepret it and the site then sees IE as an "unidentified" browser.
    The problem with an unidentified browser is that the plug-ins in that browser aren't recognized either, so even though you're up to date, it says you need the latest Flash Player when you use IE11. YouTube... has converted to HTML5 video so if it doesn't detect Flash Player, it can display HTML5 (MP4) video which requires no plug-in to play. Facebook can't do that, because HTML5 doesn't apply to games... only video.
    Microsoft has no plans to "fix" the mess they've created because they think it's a great idea to block you out of the websites you visit.
    They recommend using "Compatibility View" and pretending that you're using an older verison of IE... Problem with that is that it's seen limited success, and you have to enable it for EVERY page that has problems... individually.
    I'm not big on "pretending" so I recommend actually using another browser.
    Firefox (from Mozilla)
    Opera (from Opera)
    Safari (from Apple)
    Chrome (from Google)
    ANY of those will work where IE11 won't, with the Flash Player Plug-in (For all other browsers), and Chrome doesn't even need that because it has its own Flash Player plugin built in.

  • The application system preferences can't be opened

    After limiting spotlight searches to external shared hard drives, I cannot eliminate this limit because when I go to System Preferences to change Spotlight, I get an error message "the application System Preferences can't be opened". How can this be reset?

    No error code.
    I finally went to caches in my library and delted "com.apple.preferencepanes.cache".
    I tried to restart my computer but it hung up. I unplugged it and re started.
    Maybe primitive. But it seems to be working so far.
    thanks!

  • Hello, I am using flash CS6 on a mac. I cannot find the Motion Editor window anywhere on the flash interface. Can you help? Ben

    Hello, I am using flash CS6 on a mac. I cannot find the Motion Editor window anywhere on the flash interface. Can you help? Ben

    Here's what happens for me
    This is my AI file
    Here's the save dialog
    Notice that the All button is selected.
    Here's the PDF
    Notice the 1/5 at the top indicating a 5 page PDF.

  • How can I downgrade an operating system our bluetooth worked ok on the 4.2.1 system but now we are on the latest system it does not work properly so how can we get the old system back

    how can I downgrade my operating system as my bluetooth work ok with my holde commodore on the 4.2.1 system but now it is upgraded to the latest system it does not operate properley

    thankyou but it looks like we won't be buying another iphone

  • Where is the Flash Player version that will work in IE10 64bit?

    Where on the web site can I find a release date for a Flash Playerversion that will work with Internet Explorer 10 64bit in Windows 7 64bit?
    Or can someone please let me know when/if there will be a version soon.

    Here is the link to the revamped Flash Player forums as a result of your post: Flash Player. And this thread has been moved (not by me) to the forum where you can ask questions about using Flash Player...

  • My time capsule all of a sudden disconnected from the wireless system and can no longer be fund by my MacBook Pro. The little lamp on the the capsules has turned off, but it still makes a noice inside,

    My Time capsule did a backup yesterday in the morning without any problem. All of a sudden, it disconnected from the wireles system last night and the little indicator lamp turned off. It still makes a noice, as if a disc was turning inside. The Time Capsule was bought last year in June. Any suggestiom what to do? What happens if I press the little buttom (reset?), will I loose af my backup?

    Do a reset.. power off the TC..
    Hold in reset and power on.. keep holding in reset until it flashes rapidly.. if it turns on at all.
    If you bought it in June.. take it back today.. it is broken.. at a guess.
    Some Gen4 are failing this way.. get Apple to replace it.. even if it is a few days out of warranty it won't be much.

  • The Flash Help Search doesn't work

    Do I need to reinstall my flash ? I installed flash 8
    professional on my machine about a month ago. i have just noticed
    that the search button in the help section doesn't do anything.
    what should i do?
    All the help content is there but the only way i can find
    help on the topic I need is by searching through all the books
    which is obviously not very efficient.

    I was having the same problem on one of my Macs. I resolved it by removing the two help preference files in my ~/Library/Preferences folder.
    Kirk

  • Why the capture audio program can't work in the phone?

    Our capture audio program witch used MMA can run normally on the WTK simulator, but when we down the program into Motorola V303, it can�t work! The document says V303 support JSR-135, why it can�t capture audio by use MMA? The program also can�t work in Nokia 6600! Please give some suggestions!

    Hiii
        In main program you have dclared subscreen area.
    now First of all you have to declare a selection screen in your main program
    selection-screen begin of screen 1005 as subscreen.
    SELECT-OPTIONS s_bukrs1 for  v_bukrs.   "whatever you want in selection screen
    selection-screen end of screen 1005.
    IN PBO of your main screen (not in 1005) write
    call subscreen SUB1 including sy-repid '1005'.
    where SUB1 is your subscreen area name. And remember don't touch PBO or PAI of your 1005 screen, otherwise it will give you error. Yuo can just put text in layout of 1005 screen. but don't disturb other things.

  • How to force the flash to reduce in size, working fine in explorer, not so much with chrome, firefox

    Hello, I am new to this forum so please excuse any mistakes I may make.
    64bit Windows 7
    Chrome 14
    Firefox 5
    Explorer 9
    Flash Version: WIN 10,3,181,36
    So on the website I am developing http://justram.ca/ the problem I face is that the flash is quite large in chrome and firefox and is appropriate in explorer. In the coding in dreamweaver I have specified that the hight should be 250 pixels. So I am not sure why it is looking more like 400 pixels in firefox and chrome. I have cleared the cache and browsing data many times thinking it might be a browser error. I also tried windows xp and the problem persists.
    Any help would be apreciated.
    Thanks in advance,
    Tanay Parikh

    Not sure if this is the right forum for your question.  There is a Flash Player question.
    But since you're here and have posted I will firstly ask, is the browser viewing size set to 100% in all of your browsers?  They should display about the same if they are the latest modern browsers unless you have accidentally hit "Ctrl+" with the keyboard combination.

  • The flash player 7 is not working on my windows mobile 5.0 pocket pc

    After I installed flash player 7 for windows mobile 5.0 for
    pocket pc 6700 it didn't work for flash for watching clips like
    youtube. So how do I install it probably.

    Men Underwear belongs to the things Men Underwear belongs to the things, which men may not really good much skilled dallas pest control to. They to put it simply them about, get set, and they are set to go. Yet to make sure, men underwear which you can visit you can get at http://www.hihomedecor.com/apparel-accessories/intimates-underwear/men-underwears is a most appreciated and esteemed dried up other sorts of clothing with regard to men. Alternatively, men’s underwear appears in the lot versions and styles so gentleman must try many types and find out which is most effective with them. Most t-shirts designed for men tend to be from organic cotton or might be made up of organic cotton blend. Men's shorts are also manufactured connected with cotton, but several are comprised of Lycra or maybe spandex. Few tend to be sold separately and several briefs or maybe boxers tend to be hanged within packages connected with one or maybe multiples. Cotton underwear is outstanding if you remain in a sizzling or a little warm weather factors. Lycra or maybe a Lycra blend is super if anyone else is living within colder heat, only if the man may really manage the close fit, which Lycra provides. In addition also care that your own underwear isn't tight in the jock strap or in the waistband if not they it would drive you crazy. Comfort is actually forever an initial consideration by using men underwear option with regard to men. Despite the fact that he may not know this specific, men underwear belongs to the most essential elements of an man's wardrobe. In the final few long time, men’s underwear has become accessible in lots of different colors and styles also. There tend to be briefs, boxers and various boxer-briefs which you can purchase at mens underwear sale store. Because the name this means that, boxer-briefs are an assortment of the additional two kinds and they are form fitting and they are also longer in the thighs.

  • Command Link in the af:table Component can not Work in the Request Scope

    Actually, the problem is that when we click on the command link, the action method #{overview.goToLinkAction} is not triggered.
    Here is the codes of action method "goToLinkAction" on the backing bean:
    public String goToLinkAction() {
    String linkString = (String) AdfFacesContext.getCurrentInstance()
    .getProcessScope().get("linkString");
    System.out.println("Link String is: " + linkString);
    return "";
    The data object list "listOfTransefer" for af:table is composed first time when the page is initialized.
    public void onPageLoad() {
    this.listOfTransfers = composeListOfTransfers();
    But when the commandlink or commandbutton is clicked to pose the form, this onPageLoad method is ignored by using PagePhaseListener:
    public void beforePhase(PagePhaseEvent event) {
    FacesPageLifecycleContext ctx =
    (FacesPageLifecycleContext)event.getLifecycleContext();
    if (event.getPhaseId() == Lifecycle.PREPARE_MODEL_ID && needReload()) {
    bc = ctx.getBindingContainer();
    onPageLoad();
    bc = null;
    public final boolean needReload() {
    if (!isPostback())
    return Boolean.TRUE;
    else
    return alwaysReload();
    protected boolean isPostback() {
    return Boolean.TRUE.equals(resolveExpression("#{adfFacesContext.postback}"));
    That means the method "onPageLoad()" may not be invoked when the commandlink is clicked.
    Is there any way to resolve this problem without changing the scope of the backing bean to "session"?
    Your response will be very helpful for us.
    Thanks

    Hi,
    if you implicitly say that this works if the managed bean is in session scope then the problems seems to me that one of your evaluation criterias is reset in the request scope, which I think most likely is the needReload() method. Did you add debug statements to the methods to see where exactly it gets stuck?
    Frank

  • Once and for all: MSN VIDEO chat on the mac... can it work?

    the situation: my friend in France uses an msn account on a PC with the latest version of windows live or some such. I'm in the states on my blackbook. I set up a shiny new msn account, hoping to connect up to him. I've tried adium, msn mac, mercury, and ichat, and nothing will let me connect to his cam, or him to mine.
    so here's the golden question: can a mac user, as of right now, video chat with a PC user through the MSN network? if so, and if this is a waste of a new post, please direct me to the instructions. please do not tell us to sign up for AIM accounts, like I saw in another post.
    if it's not possible, please explain why not. is it microsoft's msn client for the mac that's about 3 versions behind the pc one? is it a protocol issue? why is this so impossible? is it a social thing, i.e. europeans use msn and PCs and americans use AIM/yahoo and macs? I'm baffled.

    It IS possible for a Mac user to do video with people using MSN/Windows Live messenger on Windows, but not possible to do audio.
    To do video you will need either Mercury or aMSN. I haven't used either of these, and wouldn't touch the MSN service with a barge-pole, so can't give instructions on how to set it up, but both of them do have video capabilities. As i said though, neither do audio, so unless both participants know sign-language it may be of limited use.
    The reason why it is not possible is both a protocol issue and a Microsoft one.
    MSN uses secret, proprietary protocols for their service which means that anyone wanting to interoperate with the service has to reverse engineer the protocols and then implement them (and Microsoft can of course move the goal posts at any time by changing the protocols in a new version).
    It's a Microsoft problem because they simply aren't interested in developing no cost applications for the Mac, as evidenced by the dropping of both IE and Windows Media Player for OS X (it wouldn't surprise me if Messenger gets dropped by the end of the year), so MSN Messenger lags well behind the Windows version and lacks many of its features.
    The situation with MSN/Windows Live Messenger is unlikely to change until Microsoft switches to the IETF standard for IM, XMPP. It may be years before Microsoft switches but it will have to eventually as XMPP is the daddy in enterprise IM and becoming increasingly popular in the consumer space with services such as Google Talk, Gizmo (IM portion) and Live Journal (among thousands of others) utilising it.
    Fortunately iChat already supports XMPP (Jabber) for IM, although doesn't yet use the XMPP standards for video or audio (though i'm still hopeful this will change with Leopard), so once MS switches you should be able to set it up in iChat. But like i said, it may take years before all the major IM companies converge on XMPP as the protocol of choice.
    Anyway, if you're just interested in video AND audio chats between Windows and Mac OS X you don't have a lot of choices. There's the AIM/Trillian Pro <-> iChat route that you don't want to take, there's the Skype route (much as i loath Skype) which seems to be the preferred option among other forum posters here, and there are a few other alternatives too which i haven't paid much attention too, but there is currently NO way to do both video AND audio between Mac OS X and Windows using MSN/Windows Live.
    Or i suppose you could wait for Leopard and hope that Apple provides MSN functionality but i suspect you'd be disappointed.
    Not the answer you were looking for i'm afraid but i hope my post helps you find an alternative solution. Don't forget to send feedback to Microsoft and demand they switch to XMPP in MSN/Windows Live Messenger. The more requests the better. ^_^

  • HT2240 My hard drive crashed and I want to reinstall Quick Time Pro. I have a record of the Registration Code, but can't work out how to download the Pro version once again.

    How do I reinstall Quick Time Pro for the second time if I no longer have the original email even though I have the registration code??
    My PC died and I want to reinstall on a new PC.

    Download and install the "free" version of QuickTime Player from Apple.
    Under its Edit menu choose Preferences / Registration and enter your info. This "unlocks" the Pro features found in the free download.

Maybe you are looking for

  • No JRE version found in launch file for this system

    Hi, I have an application which is launched by JWS. When we use JWS from 1.4, it runs fine. But JWS from 1.5.0_15 gives the error "No JRE version found in launch file for this system" In both the JWS(1.4 and 1.5.0_15)cases, we install JRE1.5.0_15 usi

  • Help with install problem

    I updated fom 10.4.2 to 10.4.6. Most things work except my phone won't sync. I have ilife 06 which won't work unless 10.4.3 is installed. It appears that 10.4.3 has issues with lacie drives (I have one) should I reinstall 10.4.2 and forget 10.4.6 and

  • IPhone 4s wifi freezing

    I was having the same issue as everybody else with the wifi being greyed out and not being able to enable it. I took the phone into the apple store and they did tell me there were issues with some of the 4s models and ios7. They anticipate a new rele

  • SAP SD-USA!!

    Hello Friends!!! Anyone of You are in US,plz let me know. I am in US and looking for my first project in SAP SD.I need your help to guide me thru to handle the interview and to defend my Resume.As everyone knows situation here is different. Appreciat

  • Instance not found in BPEL Console until Process finished

    I have two services on the server, where one (asynchronous) service is calling another (synchronous) service multiple times. WHen creating an instance in the BPEL Console, this instance is nowhere to be found. When trying to see the flow, an error me