Updating the swf panel from Javascript

General Discussion of Scripting for Flex, Flash & CS SDK

Moderators: Tom, Kukurykus

d3mac123

Updating the swf panel from Javascript

Post by d3mac123 »

In my panel (plugin interface) I have a button and a progress bar. When user hit the button, it starts a javascript function which sends the percent to be updated in the progress bar.

Is there a way to create this communication between the jsx and swf? I have tried:
Code: Select allvar reqResult:SyncRequestResult = CSXSInterface.instance.evalScript("updateBar");


but it just call the jsx function, updating only with the last percent (100).

By the way, I tried this too without success... http://cookbooks.adobe.com/post_Communi ... 17383.html ... 17383.html

thanks a lot,
Alex