I have a GWT application that utilizes a Flash/PaperVision3D component
that I have created. The GWT app places creates instances of the Flash
component on different tabs in a tab panel. During execution of the
app, everything works great until the user starts clicking in between
tabs. At the GWT level, the generated JavaScript is changing the
style.display attribute to hide and show the contents of the tabs. It
appears that the Flash component (included in the page by natively
scripting an 'embed' tag) is reloading/restarting each time that it is
made visible.

How can I prevent it from restarting/reloading? I don't have much
control at all over the fact that the DIV tag is getting set to
style.display = 'none', as that is being controlled by the
autogenerated GWT code, so I can't take the route of playing some
games of setting transparency or shrinking it down. Is there some
setting perhaps in the Flex/Flash development to allow it to do this?
Or maybe in the Embed tag? Or even at the JavaScript level?

It seems that a side effect of the unloading/reloading is that the API
that I export from my Flash component via ExternalInterface is not
available when the component is not visible.

I know there are plenty of GWT Flash based components out there? How
have you folks solved this problem in those and similar components?

Thanks,
Darren

--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

Reply via email to