Results 1 to 3 of 3

Thread: Flash 4 to VB

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2000
    Location
    none
    Posts
    19

    Post

    Hello ,

    Does anyone know how to work flash4 with vb5?
    I already added a FINISHED flash document into vb using componets. It show in the vb form and works fine.

    My problam is, there are animated buttons. When the mouse goes over the flash button it does it's thing, same when I click on it or do a mouse over.

    I want another form to come up when I push the flash button. I tryed putting a transparent label over the flash 4 button. When I click where the label is, the form pops up, but no animation from flash4. The label is blocking it.

    How do I click on a flash button for a form to pop up, and get it to animate whenever the mouse is over it?

  2. #2
    Hyperactive Member
    Join Date
    Aug 1999
    Location
    Glasgow,Scotland
    Posts
    281

    Post

    Hi,

    Just browsing over some messages and I saw yours. As far as I know you can't get a form to pop up by clicking a flash animation. It's in the same league as clicking on a .gif or jpeg file within a html document in the webbrowser control - you can't make a VB form pop up in that way. If you find a way, let me know.

    Slan

  3. #3
    New Member
    Join Date
    Jun 1999
    Location
    Quebec, Quebec, Canada
    Posts
    6

    Post

    In Flash 4 :

    1) Double click your button

    2) In the "Actions" tab, enter this code :

    Code:
    On (Release)
          FS Command ("ButtonClicked", "")
    End On
    In VB :

    Place your animation on the form then enter this code :

    Code:
    Private Sub ShockwaveFlash1_FSCommand(ByVal command As String, ByVal args As String)
        If command = "ButtonClicked" Then
            frmYouWantToDisplay.Show
        End If
    End Sub

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