Note that there are some explanatory texts on larger screens.

plurals
  1. POResizing SWFs with JavaScript
    primarykey
    data
    text
    <p>My client wants a silly intro page where, onClick, doors to a warehouse open into the warehouse itself (redirect into the website). I created a 1920 x 1174 SWF that does just so. It can be seen <a href="http://platinumbuyersclub.com/intro.html" rel="nofollow" title="rough draft of a swf intro">here</a>. As you will notice, the backdrop of the warehouse and sky are included in the SWF. Just a minor question: is there a better way to do that? One thought was to crop the sky out of the SWF and make the animation smaller so it could be centered with CSS on the intro page. Then make the background-image the sky.</p> <p>My big problem is the resizing. My (possibly ignorant) assumption is that if I make the SWF really large, it can be scaled down for different resolutions and the aspect ratio kept.</p> <p>I have tried both of the suggestions at <em>www aleosoft com/flashtutorial_autofit.html</em> and they wildly distort my SWF (which can be seen <a href="http://i39.tinypic.com/14cu2cj.png" rel="nofollow" title="Screenshot of the affects exactfit">here</a>). Is this because of my publishing settings? </p> <p>I turned to JavaScript for somewhat of an answer. Right now I am resizing the swf onload to the screen width and height because window inner height and inner width also distort the aspect ratio. I would like for it to work like <em>www aleosoft com/flashtutorial_autofitexample.html</em></p> <pre><code>var w = screen.width, h=screen.height; document.write('&lt;object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+w+'" height="'+h+'"&gt;'); document.write('&lt;param name="movie" value="movie.swf"&gt;'); document.write('&lt;param name="scale" VALUE="exactfit"&gt;'); document.write('&lt;embed src="movie.swf" width="'+w+'" height="'+h+'"&gt;&lt;/embed&gt;'); document.write('&lt;/object&gt;'); </code></pre> <p>I am open to using the object/embed parameters as a solution or JavaScript. I'd rather not use jQuery but I will if necessary. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload