Date: Thu Sep 3 08:45:54 MST 1998 From: Peter McBride <pete@otc.net> Subject: How to auto-resize ShockWaveThis was a cool enough hack that I thought I'd share it.
I finally figured out a way to get ShockWave to recognize how big is the frame it is currently in; once you have done that, it isn't too hard to have ShockWave then reconfigure itself for any size frame. For instance, I've written a clock that automatically fills the current frame, no matter how big or small it is.
This requires a little setup in HTML and one really dweeboid line in Director:
<IMG SRC="dot.gif" WIDTH=100% HEIGHT=1 BORDER=0>< BR >This will help ShockWave learn how big the frame is. We're gonna use it find out what WIDTH evaluated to.
<embed width=100% height=100% src="myMovie.dir" name="testMovie">
on whatSize
externalEvent("parent.document.testMovie.EvalScript(document.images[0].width);")
end
on EvalScript x
alert "Window Width is:" && value(x)
end