> From: Chuck Neal <[EMAIL PROTECTED]>
> Organization: MediaMacros, Inc.
> Reply-To: "Lingo programming discussion list <[email protected]>"
> <[email protected]>
> Date: Fri, 04 Mar 2005 09:16:51 -0500
> To: <[email protected]>
> Subject: <lingo-l> Scaling Shockwave in the browser with no gray border.
>
> I should know this but can;t find anything on the subject.
>
> I want the SW movie to fill the browser proportionally as much as it
> can. The problem is that I have a blue BG and when I do this the rest
> of the SW are goes gray in the left over space. Any good JS code or
> trick to fix this?
If I understand you correctly, this area is controlled by the Shockwave
player. My first question is, is the background of the Director file gray?
If you set the background of your Director file to the same color as your
html background, it may fill in that area with that color, rather than gray.
If you are relying on a gray background for your file, you can put a gray
shape in channel 1.
If your background is not gray, you would probably need to dynamically write
your Shockwave tag.
1) Determine window size
2) Calculate the max size you can go with Shockwave while maintaining
proportions
3) document.write the Shockwave tag.
However, this uses a hard-coded size, rather than a scaleable size, so
resizing the window may not change things. Or, if it will work with
resizing, the gray may creep in during resizing and you may have to refresh
on every resize.
I'm sorry I don't have the time to test this right now, but these blind
gropes may give other folks some ideas....
--Rich Shupe
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi To post messages to the list, email
[email protected] (Problems, email [EMAIL PROTECTED]). Lingo-L is for
learning and helping with programming Lingo. Thanks!]