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!

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

Timer event to have the status of Playing property.

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!

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.