Play 2nd SWF

.NET Edition of the F-IN-BOX
dagelmyster
Posts: 5
Joined: Thu Feb 04, 2010 5:00 pm

Play 2nd SWF

Postby dagelmyster » 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

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Thu Feb 25, 2010 4:42 pm

Hello,

May be the first movie has single frame only?

Thank you.
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html

dagelmyster
Posts: 5
Joined: Thu Feb 04, 2010 5:00 pm

Postby dagelmyster » Thu Feb 25, 2010 4:49 pm

Yes, I think you're right... so how then can I determine when the movie is finished playing?

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Thu Feb 25, 2010 6:03 pm

dagelmyster wrote:Yes, I think you're right... so how then can I determine when the movie is finished playing?


Unfortunaly, there is no a common solution.

Also I've noticed that you compare:

Code: Select all

FLVPlayer.FlashMethod_CurrentFrame = FLVPlayer.FlashProperty_TotalFrames


but you should:

Code: Select all

FLVPlayer.FlashMethod_CurrentFrame = FLVPlayer.FlashProperty_TotalFrames - 1


Thank you.
Best regards, Artem A. Razin,

F-IN-BOX support

Ask your question here: http://www.f-in-box.com/support.html

dagelmyster
Posts: 5
Joined: Thu Feb 04, 2010 5:00 pm

Postby dagelmyster » Thu Feb 25, 2010 6:41 pm

Thanks anyways.


Return to “.NET Edition”

Who is online

Users browsing this forum: No registered users and 14 guests

cron