# Flash button fs command vb6

**URL:** <https://forum.kirupa.com/t/flash-button-fs-command-vb6/329239>\
**Category:** Uncategorized\
**Created:** [August 5, 2012, 6:38pm UTC](https://forum.kirupa.com/t/flash-button-fs-command-vb6/329239 "2012-08-05T18:38:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MaxRevenge](https://avatars.discourse-cdn.com/v4/letter/m/a8b319/32.png) [@MaxRevenge](https://forum.kirupa.com/u/MaxRevenge)\
**Post date:** [August 5, 2012, 6:38pm UTC](https://forum.kirupa.com/t/flash-button-fs-command-vb6/329239/1 "2012-08-05T18:38:49Z")

</div>

flash fs command in vb6

i made a couple of buttons in photoshop. then i animated them in flash cs3. as in when u click them they look pressed and look normal otherwise.  
then i played them in vb6 form using the shockwave flash control. thats all pretty and good. but thing is when i click the button in vb6 form i want it open another form.  
i searched a bit and click event of flash file (.swf) can be done in vb6 with something called fs command. as in the shockwave flash control has a fs command event the same way a command button has click event. in vb6 i write:

```
Private Sub s1_FSCommand(ByVal command As String, ByVal args As String)
If command = "ButtonClick" Then
MsgBox "You have successfully triggered the Click Event", vbInformation, "Flash"
End If
End Sub

```

in flash,i have tried and tried and searched and searched but cant find the proper code to write in the actionscript. it just doesnt work when i press the button. can anyone PLEASE guide me with this? it is frustrating beyond belief.
