|
-
Apr 5th, 2000, 08:41 PM
#1
Thread Starter
Hyperactive Member
If you get this, great!
You posted a reply a few weeks ago to the topic of subject:'Flash 4 to VB'.
The topic involved making a button in Flash so that when it is clicked, it wil make a form, or some other action, appear in the Visual Basic environment.
'I want another form to come up when I push the flash button.'
I tried your code but it doesn't work.
You said:
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
---------------------------
The following code works:
---------------------------
Private Sub ShockwaveFlash1_FSCommand(ByVal command As String, ByVal args As String)
frmYouWantToDisplay.Show
End If
End Sub
---------------------------
But the problem is that I have multiple buttons on my form, and I think I will have to give them names; ButtonClicked, ButtonClicked2, ButtonClicked3...etc.
Would you have any suggestions as to what I should do?
Thanks.
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
|