Jump to content

A qestion about playing a flash on a TUnihtmlframe


wangxuebin

Recommended Posts

I want play a flash on a TUnihtmlframe as the background of the mainform,I want the flash can resizeable with the TUnihtmlframe,

I mean when I set the align property of TUnihtmlframe to alClient,I hope the flash can follow the TUnihtmlframe to cover whole area

of client area,I have following code:

 

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />

<style type="text/css">

.content-width {MARGIN: 0;width: inherit;}

.content-width object {MAX-WIDTH: 100%!important;HEIGHT: auto!important;width:expression_r(this.width > 1680 ? "1608px" : this.width)!important;}

 

</style>

</head>

 

<body>

 

<div class="content-width" >

 

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="1600" height="850" align="middle" title="flash">

<param name="movie" value="files/fls1.swf" />

<param name="quality" value="high" />

<embed src="files/fls1.swf" width="100%" height="100%" align="middle" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" scale="exactfit"></embed>

</object>

</div>

</body>

</html>

the codes above can work as I wish in firefox, but in IE,it displays a small flash,can't cover the TUnihtmlframe area.

someone can give me tip?

thanks in advance!

wxb_km

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...