I managed to get my swf file displaying in vb and have successfully set up interaction between vb.net and my swf file.
What I am trying to achieve is set up a timer that relies on data passed from vb.net to the swf, however the timer acts like the event it is for has completed immediately.
VB.NET
Private Sub AXShockwaveFlash1_FSCommand(ByVal sender As Object, ByVal e As AxShockwaveFlashObjects._IShockwaveFlashEvents_FSCommandEvent) Handles AxShockwaveFlash1.FSCommand
If e.command = "mysend" Then
MessageBox.Show(e.args, "this is args msg", MessageBoxButtons.OK, MessageBoxIcon.None)
ElseIf e.command = "myretrieve" Then
AxShockwaveFlash1.SetVariable("StepSize", RaceLength) ' RaceLength)
MsgBox("Time is " + RaceLength.ToString)
End If
End Sub
FLASH ACTIONSCRIPT
function onsend()
{
getURL("FSCommand:mysend", StepSize); // texttest.text);
sStatus = StepSize
ShowSize.text = StepSize
}
function onretrieve()
{
fscommand("myretrieve")
sStatus = StepSize
ShowSize.text = StepSize
}
Thanks