Adobe SWF

madru

Active Member
Licensed User
Longtime User
Hi,

is it possible to include a SWF file into a View/Activity?

currently I use:

B4X:
Dim WebView1 As WebView
WebView1.Initialize("WebView1")
Activity.AddView(WebView1, 995, 463, 180, 140)
WebView1.Visible=False
WebView1.LoadUrl("file://" & File.Combine(File.DirRootExternal, "ani.html"))
WebView1.Visible=True

B4X:
<html> 
<head>
<title></title> 
<body>
<center>
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
 codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" WIDTH="0" HEIGHT="0">
 <PARAM NAME=movie VALUE="rotate.swf">
 <PARAM NAME=quality VALUE=high>
<param name="wmode" value="transparent">
<EMBED src="rotate.swf" WIDTH="160" HEIGHT="120" quality=high TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" wmode=transparent></EMBED>
</OBJECT>
</center>
</body>
</html>

this works nearly OK but it is flickering during load and transparency does not work! :(

the SWF is a animated logo of a company and has to be on every View/Activity.....

any ideas?

THX

M
 

madru

Active Member
Licensed User
Longtime User
Erel,

is it possible to have transparency in the WebView - Flash combination?

the background of the Flash animation is alway white, no idea why :(

THX
 
Upvote 0

cbal03

Member
Licensed User
Longtime User
I have created and used images for flipbook style display in an imageview. If you convert your movie to a series of images use .png format. It retains transparency (has an alpha channel). And the imageview accommodates alpha channels. Also, I found that loading a list of bitmaps to iterate over is heavy on memory. So I load each image directly to the imageview. The timer will affect the speed of the video. Mine are usually 12 fps. So 83.3 milisecond timer matches pretty well. I am still pretty new to this but I hope this helps.
 
Upvote 0

boten

Active Member
Licensed User
Longtime User
you can also use Gifdecoder if you first "organize" your images as an animated gif.
 
Upvote 0
Top