www.JosXP.com, Joomla Professionals

Flash (.swf files) with VB: 


Category:
GUI
API:  SendMessage
ActiveX: Shockwave Flash (Flash.ocx)

This project demonstrates how to use .swf files (Shockwave format) with VB to design your own custom interface.

Using Flash (swf files) with Visual Basic

SWF files can communicate with MS Visual Basic using the ActionScript Method fscommand.
Calling the method fscommand will fire the event:
FSCommand(command As String, args As String) of the ActiveX Control Flash.ocx

For example, put a flash button in your fla file with the following code:

on (release) {
   fscommand("close");
   }

In Visual basic you can catch this fscommand:

Private Sub swf_FSCommand(ByVal command As String, ByVal args As String)
  Select Case command
      Case "close"
          End
       Case "min"
          Me.WindowState = vbMinimized
  End Select
End Sub




Trick Never Seen Before!