Code archives/BlitzPlus Gui/Flash and BlitzPlus
This code has been declared by its author to be Public Domain code.
Download source code
| |||||
You can use Flash for user interactions in B+ using a HtmlView and various tweaks. Pretty simple to setup. The bb code for it is below but you will need the zip file ( www.zen28085.zen.co.uk/flashBlitzTest.zip ) to get the flash and html files. Also see here: http://www.blitzbasic.com/Community/posts.php?topic=51053 | |||||
Global window=CreateWindow( "Flash UI in Blitz+",0,0,340,380, 0, 1) SetMinWindowSize window,200,0 Global html=CreateHtmlView( 0,0,ClientWidth(window),ClientHeight(window),window,3 ) SetGadgetLayout html,1,1,1,1 HtmlViewGo html,CurrentDir()+"flash URL test.html" While WaitEvent() ; DebugLog "eventID $"+Hex(EventID())+" eventDATA "+EventData() Select EventID() Case $401 Select EventData() Case 1 DebugLog "BUTTON PRESSED" End Select Case $803 ;WINDOW CLOSED EVENT Select EventSource() Case window End End Select End Select Wend End |
Comments
| ||
If the BlitzMax application is running in fullscreen double buffered mode will this code still run? |
| ||
If the BlitzMax application is running in fullscreen double buffered mode will this code still run? In short, no. |
| ||
Mirrored the flashBlitzTest.zip here: http://blitznews.wordpress.com/blitzmirror/ |
Code Archives Forum