Solved

how to change the height of a /swf file

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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
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 …
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

695 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