click event for a flash object in vb.net

Dynamike

New member
Joined
Nov 8, 2005
Messages
1
Programming Experience
1-3
We are working on a big vb.net project and we did many flash animations which we want to act like buttons. But with the objects used to show flash in vb.net, there is no click event. The only potential event is enter and seems to always activate. We want our flash objects in vb.net to act like buttons so, for an example, if you click on the flash object that represents the exit that it will close the form.

Since there is no click event for a flash object, does anyone knows how to work around this problem?
 
the fsCommand is the event you will need to handle.
In Flash you can send an fsCommand with two parameters, command and parameters: fscommand("command", "parameters");
The fsCommand event handler signature in VB.NET is:
VB.NET:
Private Sub Flash1_FSCommand(ByVal sender As System.Object, _
  ByVal e As AxShockwaveFlashObjects._IShockwaveFlashEvents_FSCommandEvent) _
      Handles Flash1.FSCommand
where Flash1 is the shockwave object.
You can access 'command' and 'parameters' of the fsCommand via the second parameter in the event handler, e.command and e.args.
 
Back
Top