Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Detect if a flash file is finished playing. 1

Status
Not open for further replies.

Toastie

Programmer
May 19, 2001
123
AU
I have been told that it is possible to detect if a flash file is finished playing.

Anyone know how??

Thanks

Matt
 
put a timer1 in the form and set suitable interval for the timer and try the command as i given below

==============
Private Sub Timer1_Timer()
If flash1.CurrentFrame = flash1.TotalFrames Then
fla1.Stop
End If
End Sub
=============

here flash1.totalframes returns the number of frames in the flash.in timer check that if the current frame of the swf is reched the last frame then put stop
before that on form load
set the property of the flash file
as
flash1.loop = false
flash1.play=true
i hope this will help u
with regards
webspy(raghu)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top