Hello all. I was hoping for some help building out this application. Here is what I am trying to do.

The file will consist of 3 videos using netstream to connect to an FCS server.

On the FCS server will be a bunch of commercials and then the actual client content.

When the movie first starts I need a commercial to be chosen randomly to play. After the commercial is complete, it will start playing the actual content. Once the content is complete it will play 1 more random commercial.

Using Netstream I know how to move from one video to another 'on complete' but how do I have a random commercial play before and after the actual content? And how do I make sure each commercial gets played before it starts repeating? Any help would be greatly appreciated.