I'm trying to incorporate the Flash display into my JAlbum skin software, and have run into two odd little problems.

If I use both swfobject.js and easing_equations.js, the Flash display isn't centered properly in the popup window in Firefox: [test site removed]. On this page, the regular images work fine, but the third one shows the error.

That same page in IE7 shows the Flash presentation properly, but the floating "Tina glatt" text doesn't move. In effect, the Flash presentation becomes a static image. It works OK if the Flash presentation is the first thing you open on the page, but if you open one of the other regular jpg's, then open the Flash again, it's static.

If I remove the call to the easing equations, it behaves properly in Firefox, but the IE7 problem seems to occur even without the easing equations, so I don't understand what's happening there, at all.

Any ideas?

Last edited by EarlyOut on Mon Apr 14, 2008 5:50 am, edited 1 time in total.

I can't see anything wrong immedieatly with your pages, and I think these Firefox/IE7 issues are two different things, since they not seem related. Do you mind letting the page live for some days, so I can come back and check it in detail?

I found the Firefox related bug. Firefox is not able to handle the decimal values that are the result of certain easing operations. The fix is to simply round the numbers. It will be included in the next release. Until then,

The fix for the stopping flash is to set hs.preserveContent = false. You can do this for either the whole page or the single Flash expander. If it is not false, IE stops it on close and it doesn't start again.

I don't think percentages will work very well in this setting. The size of the Highslide wrapper is determine after the Flash. But, as you raise the width of the Flash to 600, you also have to raise the with of the expander itself, by using CSS or hs.width.

Yes, I had a gut feeling that percentages would create horrendous problems with determining the size of the expander! For setting the width of the expander, hs.width works very nicely.

Now, I need to figure out how to determine the size of a Flash presentation. Something tells me that's going to be ugly, and full of land mines. Probably best to tell the users of my software that they need to pick a size, and let Flash use it, no matter what the "native" size of the SWF object is.