473,383 Members | 1,822 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

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

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


Jul 22 '05 #1
3 1763
The only way I could see this relating to ASP at all (ASP doesn't render an
ActiveX control, HTML does) is to ask the user to also enter dimensions for
width and height when they upload the file, then you could store that also.
(Even if you could extract the width and height from the SWF file, that
might not be the width/height they wish to display it.)

There is no magic bullet here from ASP that will solve your problem...
mainly because it isn't an ASP problem.

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Laphan" <no****@nospam.com> wrote in message
news:eS**************@TK2MSFTNGP09.phx.gbl...
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.ca
b#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


Jul 22 '05 #2
Understood Aaron

Thanks for the feedback anyway.

All the best.

Rgds Robbie

"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
The only way I could see this relating to ASP at all (ASP doesn't render an
ActiveX control, HTML does) is to ask the user to also enter dimensions for
width and height when they upload the file, then you could store that also.
(Even if you could extract the width and height from the SWF file, that
might not be the width/height they wish to display it.)

There is no magic bullet here from ASP that will solve your problem...
mainly because it isn't an ASP problem.

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Laphan" <no****@nospam.com> wrote in message
news:eS**************@TK2MSFTNGP09.phx.gbl...
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.ca
b#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



Jul 22 '05 #3
You might want to check the flash forums at forums.macromedia.com to see if
anyone knows how to extract the size from a flash piece.

--
--Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com

"Astra" <in**@NoEmail.com> wrote in message
news:uv*************@TK2MSFTNGP12.phx.gbl...
Understood Aaron

Thanks for the feedback anyway.

All the best.

Rgds Robbie

"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
The only way I could see this relating to ASP at all (ASP doesn't render
an
ActiveX control, HTML does) is to ask the user to also enter dimensions
for
width and height when they upload the file, then you could store that
also.
(Even if you could extract the width and height from the SWF file, that
might not be the width/height they wish to display it.)

There is no magic bullet here from ASP that will solve your problem...
mainly because it isn't an ASP problem.

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Laphan" <no****@nospam.com> wrote in message
news:eS**************@TK2MSFTNGP09.phx.gbl...
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.ca
b#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



Jul 22 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Gregory | last post by:
Hello, I've managed to build two web pages, one that can display images with associated text data in a table, and one that can resize and display images without the text. I'd like to resize the...
11
by: Ian Davies | last post by:
Hello Im having problems displaying my images as thumbnails in a table. My code for producing the new width and height from the original image is as follows...
3
by: Dalan | last post by:
At first I was not certain what could cause Access 97 from displaying most jpeg images, but not all. After further testing, it seemed that all original images of less than 275 pixels per inch or...
3
by: Lyn | last post by:
I need some guidance for a technique that will allow me to accomplish the following... I have a table in which each record contains a photograph. I would like to display in a form a thumbnail...
15
by: David Lozzi | last post by:
Howdy, I have a function that uploads an image and that works great. I love ..Nets built in upload, so much easier than 3rd party uploaders! Now I am making a public function that will take the...
8
by: Jon Weston | last post by:
I'm setting up an Access2003 database with pictures. I put a bound ole picture ctrl on a form that's source is the table that contains the pictures and follow ALL the directions for embedding a...
4
by: aldonnelley | last post by:
Hi there: a bit of a left-field question, I think. I'm writing a program that analyses image files downloaded with a basic crawler, and it's slow, mainly because I only want to analyse files...
4
by: redpears007 | last post by:
Hi Again, Throwing this one out to you again as i am not getting anywhere and can find little to no information out there. I am currently displaying images (Jpegs) in access via the routine...
4
by: crazychrisy54 | last post by:
Hi there, I am new to JavaScript and wonder if it could be used to solve my problem, any help would be much appreciated! I have a html web page which contains a table on the left hand side and...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.