Solved

how to change the height of a /swf file

Posted on 2009-07-16
14
269 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
Industry Leaders: 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 500 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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
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 how to record live broadcast.

733 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