Solved

how to change the height of a /swf file

Posted on 2009-07-16
14
265 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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

746 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

11 Experts available now in Live!

Get 1:1 Help Now