0

I am having no trouble playing a swf file in VB but how can a play a second SWF file AFTER the first has finished? How do I know when the first file is done playing? Tried 'isplaying' method in a while loop but can't get it to work.

Thanks for any help!

2
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by dagelmyster
0

>how can a play a second SWF file AFTER the first has finished?

Timer event to have the status of Playing property.

0

I think I know what you're talking about but would you mind throwing up some code? Are you talking about the Isplaying method? I'm using a timer to check if current frame equals total frame but it's not working.

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

Thanks for your help!

0

Actually, I just found out that my 'movie' only has one frame so I can't count frames. Can you elaporate on the 'playing' method and how I can check to see if it's still playing?

Thanks

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.