Displaying swf in vb.net 2003 application

DekaFlash

Well-known member
Joined
Feb 14, 2006
Messages
117
Programming Experience
1-3
I am trying to display a swf on a Winform, however I just get a White square.

Can someone please assist.

Thanks,
Boulent
 
check this thread ...also you can check other threads about flash you may find many interesting things about flash and .net
However i beleive you are using 'Shockwave Flash Object' and if you want to only display the flash movie (.swf) then just right click this object and select properties ... then enter the path in the 'Movie URL'.
Voila ;)
 
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
 
Back
Top