Solved

how to change the height of a /swf file

Posted on 2009-07-16
14
266 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
  • 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
 

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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

947 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now