?
Solved

how to change the height of a /swf file

Posted on 2009-07-16
14
Medium Priority
?
272 Views
Last Modified: 2013-11-11
I am trying to adjust the height of a .swf.  I have tried to change the tag from swf to fla - this is not poss.

I have tried to import it - falsh doesn't like it and it doesn't work.

I have tried to change the height on the code - I cannot do this as it chops off the btm of the images.

Please help,

Thanks in advance,

Bev.


<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="952" height="406">
                          <param name="movie" value="../site_flash/flash/header_v8.swf" />
                          <param name="quality" value="high" />
                          <embed src="../site_flash/flash/header_v8.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="952" height="300"></embed>
					  </object>

Open in new window

0
Comment
Question by:Bevjones
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 7
14 Comments
 
LVL 13

Expert Comment

by:crooksy88
ID: 24874008
Have you noticed there are two instances where you need to change the size parameters?

width="952" height="406"
width="952" height="300"

These should both be the same.

0
 

Author Comment

by:Bevjones
ID: 24874099
yes sorry - i have tried both of these being the same.  That was an error when I was messign around with the script. Sorry :-)
0
 
LVL 13

Expert Comment

by:crooksy88
ID: 24876173
You may have better results using the scale parameter.

<param name="scale" value="exactfit" />

http://kb2.adobe.com/cps/141/tn_14149.html
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:Bevjones
ID: 24877095
Hi there,

Thanks for the reply,

But, the only thingthe code is doing is chopping the bottom off the flash, so that doesn't work, Sorry.
0
 
LVL 13

Expert Comment

by:crooksy88
ID: 24877107
can you upload the files somewhere so I can take a look?
0
 

Author Comment

by:Bevjones
ID: 24877143
www.zodiac-images.co.uk/netnanny/index.html - is the site I'm temp using.  Thanks for your help with this.

:-)

Bev.
0
 
LVL 13

Expert Comment

by:crooksy88
ID: 24877175
What am I looking at? i.e. what is wrong?

this is what I can see at the moment...
Picture-1.jpg
0
 

Author Comment

by:Bevjones
ID: 24877195
yes - i need it to be smaller. The flash is taking up too much of the page.
0
 
LVL 13

Expert Comment

by:crooksy88
ID: 24877241
So you are wanting to squash the flash file so it keeps the same width but has a smaller height?
0
 

Author Comment

by:Bevjones
ID: 24877255
yes that's right.
0
 
LVL 13

Accepted Solution

by:
crooksy88 earned 2000 total points
ID: 24877405
Unfortunately the file contains code that prevents the swf from being scaled.
Stage.scaleMode = "noScale";

This is why the scale param didn't work.

Although I was able to decompile the header_v8.swf I'm not able to delete the code and output it again as I don't have the same fonts that were used when the file was created.

0
 

Author Comment

by:Bevjones
ID: 24877653
Thankyou ever so much for trying to help me - you have been very patient and persistent.

Thanks anyway - I'm just glad I'm not as dull as I felt!

Bev.
0
 

Author Closing Comment

by:Bevjones
ID: 31604414
Very patient and persistent. Thankyou ever so much for not making me feel really stupid!
0
 
LVL 13

Expert Comment

by:crooksy88
ID: 24877756
You can download a working version from here.

I've used a different embedding technique, called swf object. See the index.html file for how to embed the swf and also note the javascript file that is linked to in the html header.

http://www.infin8design.com/clients/ee/squash.zip
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question