Solved

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

Posted on 2008-10-11
2
511 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

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
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): …
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

773 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