This content has been marked as final. Show 3 replies
Since you are import the ExternalInterface class you don't have to use the FSCommand. you should just use the call() statement, like this:
"sayHello" : this would be the name of the JS function you want to call
"browser" : this is just a string you could pass to the funciton.
You will also be able to receive data back from the JS function directly, like this:
greeting = String(ExternalInterface.call("sayHello", "browser"));
Whatever you placed in a "return" statement in the function "sayHello" would be stored in the Flash variable "greeting.
This was taken directly from the Help files. This might help with the updating.
As you suggested, I changed my code to use ExternalInterface.call ( ), instead of using fscommand ( ).
I can feel this is much faster than using fscommand ( ), but it does not solve my original problem.
This AS code interacts with C# app embedding a Shockwave Flash Object (as an ActiveX control).
I did put Application.DoEvents() before entering long-running operation in C#.
In debugging mode, it works sometimes, however, it is of no use in realtime (release) mode.
Any other suggestion?
Thanks in advance,
To redraw the flash and process other possible user interface events,
I changed my C# code so that the long running task can run in a separate thread.
Now everything works fine as I expected.