|
Posted by cwdjrxyz on 09/29/88 11:40
johnsonholding@yahoo.com wrote:
> I have a swf video in flash. It is only about 192 X144. I have a text
> link in my webpage for the video. I expected the link to work and the
> video would play at the same size as the swf, but instead it blows up
> the movie to full screen! Is there a way in html to keep it as a TEXT
> link and have it open up the right sizE? Thanks
When you directly go to a swf video file, the movie shows as full
screen on most browsers. The standard method to overcome this is to
embed the flash movie as any size you wish.. See
http://www.cwdjr.net/flash/flashdemo.php for an example. There are
several codes you can use to do this.
If the movie is fairly fast loading you can use:
<div style="text-align:center">
<object type="application/x-shockwave-flash"
data="http://www.cwdjr.info/movie/cancan.swf" width="400" height="300">
<param name="src" value="http://www.cwdjr.net/flash/circlesani2.swf"
valuetype="ref" />
<param name="quality" value="high" />
<param name="bgcolor" value="#000000" />
</object>
</div>
If the movie file is fairly large and slow loading, then IE6 will not
start the movie until it is completely downloaded, using the code
above. In that case you may use a code that takes advantage of the IE
conditional comment and uses AX for the IE browsers only. See the code
below:
<div style="text-align:center">
<!--[if IE]>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
width="400" height="300" >
<param name="movie" value="http://www.cwdjr.net/flash/circlesani2.swf"
/>
<param name="quality" value="high" />
<param name="bgcolor" value="#000000" />
<param name="autoplay" value="true" />
</object>
<![endif]-->
<!--[if !IE]> <-->
<object type="application/x-shockwave-flash"
data="http://www.cwdjr.net/flash/circlesani2.swf" width="400"
height="300">
<param name="quality" value="high" />
<param name="bgcolor" value="#000000" />
<param name="autoplay" value="true" />
</object>
<!--><![endif]-->
</div>
Many sites still use a method to embed that does not validate as modern
code, uses AX for IE, and an illegal embed tag for other browsers, but
it still works. There is another method that prepares a very short
introductory flash movie to trick IE into starting playing before
download is complete.
See http://www.cwdjr.info/media/playersRoot.php for more detailed
information under the broadband link at the top of the page.
Navigation:
[Reply to this message]
|