madru Active Member Licensed User Longtime User Jan 31, 2012 #1 Hi, is it possible to include a SWF file into a View/Activity? currently I use: Code: Copy 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 Code: Copy <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
Hi, is it possible to include a SWF file into a View/Activity? currently I use: Code: Copy 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 Code: Copy <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
Erel B4X founder Staff member Licensed User Longtime User Feb 1, 2012 #2 This is your only option to show Flash animation. Alternatively you can animate a series of images with a timer and an ImageView. Upvote 0
This is your only option to show Flash animation. Alternatively you can animate a series of images with a timer and an ImageView.
madru Active Member Licensed User Longtime User Feb 2, 2012 #3 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
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
Erel B4X founder Staff member Licensed User Longtime User Feb 3, 2012 #4 I don't think that it is possible. Upvote 0
C cbal03 Active Member Licensed User Longtime User Apr 23, 2012 #5 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
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.
boten Active Member Licensed User Longtime User Apr 23, 2012 #6 you can also use Gifdecoder if you first "organize" your images as an animated gif. Upvote 0