tnl2k7
Banned
- Messages
- 3,131
- Reaction score
- 0
- Points
- 0
Hey everyone,
I've started off a mammoth project to get a massive gaming site up and running, but hit a massive annoying barrier.
When I attempt to embed a Director file, I can't get it to fit within the width and height I specify in the embed code, it sort of clips the right hand side and the bottom off the file, because it's been developed at a higher resolution.
Here's the page in question:
** LINK REMOVED - BROKEN **
And here's the code I'm using:
Is there any way I can force it to fit within the boundaries that works on all browsers?
Thanks,
Luke.
Edit:
Dont't worry I sorted it. I edited the code, this is the final embed code that resizes the movie, keeping it in proportion:
As you can see I added the swStretchStyle parameter, and set it to meet. Anyone who needs help doing stuff with shock wave embed code might find this page useful, it sure helped me.
I've started off a mammoth project to get a massive gaming site up and running, but hit a massive annoying barrier.
When I attempt to embed a Director file, I can't get it to fit within the width and height I specify in the embed code, it sort of clips the right hand side and the bottom off the file, because it's been developed at a higher resolution.
Here's the page in question:
** LINK REMOVED - BROKEN **
And here's the code I'm using:
Code:
<object classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0" id="movie" width="500" height="400" viewastext>
<param name="src" value="Alien-Abduction.dcr" /><param name="swRemote" value="swSaveEnabled='false' swVolume='false' swRestart='false'
swPausePlay='false' swFastForward='false' swContextMenu='false'" />
<param name="bgColor" value="#000000" />
<embed src="Alien-Abduction.dcr" bgColor="#000000" width="500"
height="400" swRemote="swSaveEnabled='false' swVolume='false' swRestart='false' swPausePlay='false' swFastForward='false' swContextMenu='false'"
type="application/x-director" pluginspage="http://www.macromedia.com/shockwave/download/"></embed>
</object>
Is there any way I can force it to fit within the boundaries that works on all browsers?
Thanks,
Luke.
Edit:
Dont't worry I sorted it. I edited the code, this is the final embed code that resizes the movie, keeping it in proportion:
Code:
<object classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0" id="movie" width="500" height="400" viewastext>
<param name="src" value="Alien-Abduction.dcr" />
<param name="swStretchStyle" value="meet" />
<param name="swRemote" value="swSaveEnabled='false' swVolume='false' swRestart='false' swPausePlay='false' swFastForward='false' swContextMenu='false'" />
<param name="bgColor" value="#000000" />
<embed src="Alien-Abduction.dcr" bgColor="#000000" width="500"
height="400" swStretchStyle="meet" swRemote="swSaveEnabled='false' swVolume='false' swRestart='false' swPausePlay='false' swFastForward='false' swContextMenu='false'" type="application/x-director" pluginspage="http://www.macromedia.com/shockwave/download/"></embed>
</object>
As you can see I added the swStretchStyle parameter, and set it to meet. Anyone who needs help doing stuff with shock wave embed code might find this page useful, it sure helped me.
Last edited: