-
Flash and VB6
Hi,
I am creating a multimedia application in VB, and am using some flash (.swf) buttons in it.
I have been told that it would be better to use the FSCommand fuction, than the GotFocus, but I cant find anything about this function.
Does anyone know how to assign operations to flash buttons within VB???
Any help will be greatly appreciated, Matt
-
That's easy!
Assume that you have created a flash file with FSCommand in it:
Up Over Down Hit
| | | |
o--------O--------O----------o
| | | L-> FSCommand("ButtonHit")
| | L------------> FSCommand("ButtonDown")
| L----------------------> FSCommand("ButtonOver")
L--------------------------------> FSCommand("ButtonUp")
and in VB, write these codes:
Private Sub Flash_FSCommand(ByVal command As String, ByVal Args as String)
Select Case command
Case Is "ButtonUp"
'do something
Case Is "ButtonOver"
'do something
Case Is "ButtonDown"
'do something
Case Is "ButtonHit"
'do something
End Select
End Sub
Parameters in VB will be:
FSCommand(command, arguments) (in Flash)
command ---> ByVal command as String
arguments ---> ByVal args as String
That's all!
(Sorry, my English is bad)
:mad: :confused: