Click here to get back home

Displaying a SWF at it's original size without setting the dimensions

 HomeNewsGroups | Search | About
 alt.www.webmaster    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Displaying a SWF at it's original size without setting the dimensions Laphan 12-29-2004
Posted by Laphan on December 29, 2004, 5:23 pm
Please log in for more thread options
Hi All

This sounds such a simple request, but doesn't seem to work.

Basically I'm allowing the user to upload their own SWF files to their web
site via a web browser (ASPupload).

I don't want to limit the dimensions that they have to use in their SWF
files so I want to simply extract and display their chosen SWF file without
specifying the width and height of the file. For some reason IE can't
handle this and displays a very squashed representation of the SWF, eg my
code is currently:

<TABLE CELLPADDING=0 CELLSPACING=0>
<TR><TD ALIGN="CENTER" VALIGN="CENTER">

<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#3,0,0,0">
<PARAM NAME="SRC" VALUE="skins/<%=mymoviefilename%>">
<PARAM NAME="LOOP" VALUE="0">
<EMBED SRC="skins/<%=mymoviefilename%>"
PLUGINSPAGE="http://www.macromedia.com/shockwave/download/"
TYPE="application/x-shockwave-flash" LOOP=0>
</EMBED>
</OBJECT>

</TD></TR>
</TABLE>

If I simply add the exact WIDTH and HEIGHT dims of the SWF file to the
OBJECT tag then it works fine.

Unfortunately ASPupload can only extract the height and width dims of JPGs
and GIFs so I can't even extract and dynamically add the dims at the same
time either.

Please note that I have already tried the PARAM="SCALE" VALUE="NOSCALE" and
this seems to create a cropped version.

Does anybody know of a way round this?

Many thanks.

Rgds

Laphan






Similar ThreadsPosted
Reading image dimensions before it is loaded on the server. June 29, 2007, 4:00 pm
Anyone got a copy of the original Ebay "viral" cartoon email? October 6, 2005, 5:51 am
Idee original pour webmaster d'accroitre ses profits February 20, 2007, 2:30 pm
Re: SUPREME TROLLS, Marc Wigle & Robert Morien Archived As Posters With "Lowest Percentage of Original Text" September 26, 2005, 7:00 pm
SUPREME TROLLS, Marc Wigle & Robert Morien Archived As Posters With "Lowest Percentage of Original Text" September 26, 2005, 9:41 am
Re: SUPREME TROLLS, Marc Wigle & Robert Morien Archived As Posters With "Lowest Percentage of Original Text" September 26, 2005, 3:36 pm
Re: SUPREME TROLLS, Marc Wigle & Robert Morien Archived As Posters With "Lowest Percentage of Original Text" September 26, 2005, 3:49 pm
Re: SUPREME TROLLS, Marc Wigle & Robert Morien Archived As Posters With "Lowest Percentage of Original Text" September 26, 2005, 5:02 pm
Re: SUPREME TROLLS, Marc Wigle & Robert Morien Archived As Posters With "Lowest Percentage of Original Text" September 26, 2005, 5:35 pm
Re: SUPREME TROLLS, Marc Wigle & Robert Morien Archived As Posters With "Lowest Percentage of Original Text" September 26, 2005, 5:39 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap