|
-
Apr 2nd, 2002, 11:37 AM
#1
Thread Starter
Junior Member
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
-
Apr 2nd, 2002, 07:15 PM
#2
New Member
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)
Last edited by Kennic; Apr 2nd, 2002 at 07:20 PM.
----------------------------------------
Today is Yesterday of Tomorrow
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|