Solved

How do I remove the whitespace that surrounds a Shockwave object?

Posted on 2008-10-11
2
510 Views
Last Modified: 2011-10-19
I've created a shockwave animation that works well but there's a problem with the large amount of white space.  The attached image shows the shockwave object (sized 320px by 256px).  But when it got saved, the shockwave placed it on an 800px by 600px background.  How do I remove all that and just have the original sized 320px by 256px object I started out with?
<html>

<head>

<title></title>

</head>

<body>
 

<div style="border:solid 1px #ccc;background-color:#efefef;">
 

<OBJECT 

	classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"

	codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"

	width="800" height="600" id="myMovieName">

	<PARAM name=movie value="plane.swf">

	<PARAM name=quality value=high>

	<PARAM name=bgcolor value=#FFFFFF>

	<EMBED 

		src="plane.swf" quality=high 

		bgcolor=#FFFFFF 

		width="320" height="256"

		name="myMovieName" 

		align="" 

		type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">

	</EMBED>

</OBJECT>
 

</div>
 

</body>

</html>

Open in new window

1.png
0
Comment
Question by:JAndyEvans
2 Comments
 
LVL 1

Expert Comment

by:chugarah
ID: 22694863
I have made a short Flash movie about the solution.


You can try to option or even three to remove the whitespaces, to crop it inside flash
using the stage or publising settings. I dont recommend the third one becouse it will change
the size of the whole flash movie.

I have have a link below for flashmovie I made about solution.
http://www.box.net/shared/0jxsuxux7b

0
 
LVL 37

Accepted Solution

by:
CyanBlue earned 500 total points
ID: 22697106
Your HTML says use 800x600...  You should change that value to the size of the SWF...

width="800" height="600" id="myMovieName">
  ---> width="320" height="256" id="myMovieName">

CyanBlue
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

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,…
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 goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

867 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

17 Experts available now in Live!

Get 1:1 Help Now