Results 1 to 2 of 2

Thread: Flash and VB6

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2002
    Posts
    22

    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

  2. #2
    New Member
    Join Date
    Mar 2002
    Location
    Ho Chi Minh City
    Posts
    2

    Lightbulb

    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
  •  



Click Here to Expand Forum to Full Width