You should use the Shockwave Flash object, because you can pass variable from flash to vb.net and vice-versa. In Visual Basic, Visual C++, and other programs that can host ActiveX controls, fscommand() sends a VB event with two strings that can be handled in the environment's programming language.
To pass values to vb.net:
Inside the flash movie: fscommand("Ordem", "Sair");
Inside vb.net:
...
string path = System.Environment.CurrentDirectory
path += @"\first.swf"
axShockwaveFlash1.LoadMovie(0,path)
axShockwaveFlash1.Play()
...
Private Sub FlashPageTurnPri_FSCommand(ByVal sender As System.Object, ByVal e as AxShockwaveFlashObjects._IShockwaveFlashEvents_FSCommandEvent)
If (e.command = "Ordem") Then
End If
End Sub
To pass values to flash:
Private Sub FlashPageTurnPri_FSCommand(ByVal sender As System.Object, ByVal e as AxShockwaveFlashObjects._IShockwaveFlashEvents_FSCommandEvent)
axShockwaveFlash1.SetVariable("mc_mytext.text", "Hello Flash, greetings from .NET")
End Sub
To send data back to the Flash movie you just need to call the SetVariable() method on the Shockwave Flash Object and specify the name of an ActionScript variable or, as in this case, the property of a Flash object.