WebView vs. Safari
WebView vs. Safari
- Subject: WebView vs. Safari
- From: email@hidden
- Date: Mon, 03 Dec 2007 11:23:29 +1300
I am having difficulty seeing transparent SWF on WebView. I have a Flash.html
file (see the html source at the bottom of this email) that embeds a
transparent GIF and a transparent SWF. Safari displays the html file correctly,
but when viewed with WebView, the GIF appears correctly and the SWF doesn't
appear at all.
The complete source files are at:
http://www.cs.auckland.ac.nz/~mano/WebViewTest2.zip
If you open Flash.html and Flash2.html, you will see that Safari sees the
transparency of both GIF as well as SWF. The difference between the two html
files is that in the first case the page background colour is clear, and the
second case it is set to green. With Safari, we see what we expect to see.
The sample code displays Flash.html within a WebView. The GIF correctly shows,
the SWF does not show. Now if you remove the line
wmode=transparent
in Flash.html (with the SWF embedding), then SWF shows, but with a background.
I am using XCode 2.5 under Mac OS 10.4.10.
I would really appreciate if you could shed some light on how I could get
WebView to behave correctly (like Safari does).
Thanks in advance.
Cheers,
Mano
------------- Flash.html --------------------------------
<html>
<head>
<style type="text/css">
body {background-color:transparent}
</style>
<title></title>
</head>
<img src="Image.gif"/>
<OBJECT
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
WIDTH="260"
HEIGHT="190"
id="myMovieName">
<PARAM NAME=movie VALUE="Flash.swf">
<PARAM NAME=quality VALUE=high>
<EMBED
src="Flash.swf"
quality=high
WIDTH="260"
HEIGHT="190"
NAME="myMovieName"
wmode=transparent
ALIGN=""
TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
</EMBED>
</OBJECT>
</body>
</html>
-----------------------------------------------
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden