Log through Action Script

Hi All,

I have 5 video files to be played. Let them be 1.swf,2.swf,3.swf,4.swf,5.swf.

I want to do two things here:

  1. I want to play 1.swf, stop it after 20 secs and play 2.swf for 20 secs. At this point of time, I dont want 1.swf to be running at the back. Similarly for the rest of the video files.
    My code runs all the videos parallelly at the back, which I dont want to happen…!

  2. After 1.swf is played, I want to log whether 1.swf is played successfully or not. So for this, I need to write the log into a text file or into a XML file. Can any one tell me how to do this…??

Thanks in Advance,
Nirmal.