I need to use a Flash file to play an MP4. I know how to set that up in Flash (simply import video), but how would I make it so the video is interchangeable with others? For example, if I have a library of videos, how do I have the Flash player select one at random?
What do you use to load flash onto your page? swfobject is used by a ton of people and it will let you include a variable, say the url of the mp4 for instance, and send it through to the swf. You can grab this variable value inside the flash application and then set the video player's source to the value of this variable.