Play 2nd SWF
Posted: Thu Feb 25, 2010 4:00 pm
I'm trying to play a second swf file AFTER the first one is done play. I've tried isplaying method and comparing current frame to total frames it's not working (vb.net). Can someone help or is there an easier way to do this? Thanks!
Code: Select all
FLVPlayer.FlashMethod_Play()
FLVPlayer.Show()
IsPlayingTimer.Enabled = True
Do While IsPlayingTimer.Enabled = True
Application.DoEvents()
Loop
MsgBox("DONE")
Private Sub IsPlayingTimer_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles IsPlayingTimer.Tick
If FLVPlayer.FlashMethod_CurrentFrame = FLVPlayer.FlashProperty_TotalFrames Then
IsPlayingTimer.Enabled = False
End If
End Sub