+ Reply to Thread
Results 1 to 1 of 1

Thread: Embedding Director (.DCR) Files

  1. #1
    tnl2k7 is offline Banned tnl2k7 is an unknown quantity at this point
    Join Date
    Nov 2007
    Location
    #offtopic ;)
    Posts
    3,131

    Embedding Director (.DCR) Files

    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:
    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 by tnl2k7; 03-05-2008 at 02:35 PM. Reason: Removed broken link

+ Reply to Thread

Similar Threads

  1. Introduction to Linux CLI
    By HomerJ in forum Tutorials
    Replies: 3
    Last Post: 02-26-2008, 08:53 AM
  2. FTP software disconnects before copying files
    By Ubung1 in forum Free Hosting
    Replies: 2
    Last Post: 02-24-2008, 03:56 PM
  3. Corrupt files from NAS over FTP
    By sandogg in forum Computers & Technology
    Replies: 1
    Last Post: 02-23-2008, 10:58 AM
  4. Windows Sortcuts
    By Blazer9131 in forum Computers & Technology
    Replies: 3
    Last Post: 11-29-2007, 04:07 PM
  5. Uploading files so they can be downloaded by a link
    By trainzguy1160 in forum Scripts & 3rd Party Apps
    Replies: 4
    Last Post: 09-16-2007, 12:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers