Ive manged to create a flash player that incorporates a video
using a online
tutorial with the code below.
All is working well but at the end of the video I want to
exit out of the
video and return to the stage at frame 1. The reason being
is; before a user
hits play an interface image (containing info) is displayed.
When they hit
the play button the video appears and plays over the
problem is at the end of the video the layer containing the
image is still
covered by the video. when the video finishes I need a line
of code to exit
and return the player to the original state without the
presecence of the
any ideas? thanks in advance
var nc:NetConnection = new NetConnection();
Inside the videoStatus() function Check the Current Time and
Total time for video completion. Some time the Video doesn't have
exact Time when comparing to the Total duration so use Math.floor
to compare. if you still facing problem also check the Buffer
status and Video status too.