How to use the SWF file

winjiadh

Active Member
Licensed User
Longtime User
I have a question.
The Flash files is .SWF. We can use it in Basic4PPC.
Who can tell me?
:sign0085:
 

winjiadh

Active Member
Licensed User
Longtime User
Deal erel
the question I not detail
I looking for the SWF in furom
I found a past said they can play the SWF in Basic4PPC
http://www.b4x.com/forum/code-samples-tips/166-change-screen-orientation-programmatically.html
the alfcen said "I have successfully incorporated the orientation switchers in combination with dzt's HTML Viewer and formlib.dll (full screen) for the purpose of replaying Flash (.swf) files on maximum possible screen area."
It's use the HTTP.dll?
can you tell me how to do it?
thank you.:sign0085:
 

alfcen

Well-Known Member
Licensed User
Longtime User
Hello winjiadh

Please embed your SWF file in HTML and load the HTML file into the WebBrowser library as Erel recommended. HTML Example for a full screen display:

B4X:
<html>
<body style='margin: 0 0 0 0px;' bgcolor='#000000'>
<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='100%' height='100%'>
<param name='movie' value='shows\tonights_sky_november2008.swf' />
<param name='quality' value='high' />
<param name='allowScriptAccess' value='sameDomain' />
<embed src='shows\tonights_sky_november2008.swf' width='100%' height='100%' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'></embed>
</object>
</body></html>

You may delete the <embed></embed> tag, since this is for Firefox, if I am not mistaken. Leaving it in place won't cause any harm, though.

For this to work, you also need the free Adobe Flash Player for Windows Mobile which you can download from Adobe's website.

As far as I remember, you can install the Adobe Flash Player to the memory card. It's about 1.3MB.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…