This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > March 2007 > Why SWF is small in Firefox?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Why SWF is small in Firefox?
Jeremy Havnes

2007-02-07, 10:14 pm

Hi,

I read on an earlier thread that changing the DOCTYPE can fix the shockwave
file display problem I was having in the Firefox browser (it was way too small,
making me think Firefox didn't recognize height/width as percentages). After I
replaced

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

with just <html>, it worked and scaled with the page. That's fine by me, but I
work within an organization where some one else will be inserting an include on
the page that has the problem DOCTYPE declaration. Is there something else I
could do to make the SWF display properly on a Firefox browser other than
change the DOCTYPE to <html>?

and WHY does the DOCTYPE affect how the SWF is rendered? Just curious on that
one.

Thanks for any insight.

Jeremy

David Stiller

2007-02-08, 3:15 am

Jeremy,

> I read on an earlier thread that changing the DOCTYPE
> can fix the shockwave file display problem I was having
> in the Firefox browser (it was way too small, making me
> think Firefox didn't recognize height/width as percentages).


The DOCTYPE tells the browser what version of HTML (or XHTML) to
consider as it interpret the file it sees.

http://alistapart.com/stories/doctype/

> and WHY does the DOCTYPE affect how the SWF is
> rendered? Just curious on that one.


It's not the SWF, per se, that's affected by the DOCTYPE -- that's what
the Flash Player is for (the browser doesn't render the SWF at all; the
plug-in just makes it look that way). What's affected is the way the
browser chooses to render block level elements, especially when specified
with percentage widths and heights.

http://www.quip.net/blog/2006/flash...g-sized-firefox

That may give you another option. :) Best of luck with it!


David Stiller
Adobe Community Expert
Dev blog, http://www.quip.net/blog/
"Luck is the residue of good design."


Jeremy Havnes

2007-02-08, 6:15 pm

David,
thanks for the information and the link!
KROGER

2007-03-06, 8:38 am

YESSS!!!! You two kick XXX! Ive been hunting down that one damn firefox workaround for days!!! Knew it was out there somewhere...
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews