thuansaritasa / swfobject

Automatically exported from code.google.com/p/swfobject
0 stars 0 forks source link

SWF Animation Issue in Firefox #284

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This is definitely more of a "would be awesome to have" fix than a
"mandatory" fix, but yeah. I've been messing around with some advanced
interactivity lately, especially concerning dynamically resizing a SWF
using JavaScript called from an ExternalInterface call. The problem with
this behavior is different in varying browsers. 

In Internet Explorer (surprisingly), it works just fine, no problems. In
Safari and Chrome, I think it was working ok, but sometimes it was
displaying the bug common to Firefox (3.0+).

Firefox was unworkable for us. When a SWF which has been dynamically
embedded into the DOM is resized by JavaScript, it will keep reloading the
SWF often, so that the SWF's state is completely lost. I have noticed if I
make the JavaScript animation ridiculously slow (like 100 seconds long), it
won't reload the SWF.

Here's some pseudocode of what we're trying to do:

swfobject.embedSWF("application.swf", "application", "100%", "100%",
"9.0.0", false);
function showSideBar() {
    tween.create("application", {width: "90%", time: 1000});
}

The call to "tween.create()" is of course the animation engine we're using. 

Original issue reported on code.google.com by rfkroc...@gmail.com on 20 Mar 2009 at 5:32

GoogleCodeExporter commented 9 years ago
What makes you think this is a swfobject related issue and not a Flash issue, 
Firefox
issue or even something could be wrong in your own example?

Original comment by bobbyvandersluis on 20 Mar 2009 at 8:30

GoogleCodeExporter commented 9 years ago
Maybe it is a Firefox issue, I don't know. All I know is that the code I have 
works
fine in Internet Explorer, but not so much in any other browser. The concept 
seems
simple enough... resizing a div to a certain size over time using JavaScript. 
It kind
of makes sense why it doesn't work, but I didn't know if this could be resolved 
in
SWFObject or not, so I thought "Why not post it somewhere, so if it is a 
problem it
can be fixed?"

I don't know, just wanted to get it out there. :)

Original comment by rfkroc...@gmail.com on 20 Mar 2009 at 10:05

GoogleCodeExporter commented 9 years ago
Please use the discussion group for getting things out there:
http://groups.google.com/group/swfobject , this issue list is for all cases 
where
you're sure it's a SWFObject bug or would like to request an enhancement.

Original comment by bobbyvandersluis on 21 Mar 2009 at 1:57