# Random video Playlist

**URL:** https://forum.kirupa.com/t/random-video-playlist/312692
**Category:** flash
**Created:** [August 10, 2010, 6:22pm UTC](https://forum.kirupa.com/t/random-video-playlist/312692 "2010-08-10T18:22:55Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![clandestino800](https://avatars.discourse-cdn.com/v4/letter/c/74df32/32.png) [@clandestino800](https://forum.kirupa.com/u/clandestino800)
#### Post date: [August 10, 2010, 6:22pm UTC](https://forum.kirupa.com/t/random-video-playlist/312692/1 "2010-08-10T18:22:55Z")

</div>

Hey guys.

I was wondering if somebody can help me out with this, i would like to play 9 different videos randomly, but i am more a graphich designer than a flash expert. but i really would like to use this 9 videos on a website and play them randomly. this is the code i am using to get the videos from the server into the flash movie:

vd1.contentPath = “[http://portal5.theaterservice.at/flashvideo/www.burgtheater.at/Content.Node2/bilder/inszenierung/Trailer---Adam-Geist.flv.flv](http://portal5.theaterservice.at/flashvideo/www.burgtheater.at/Content.Node2/bilder/inszenierung/Trailer---Adam-Geist.flv.flv)”;  
texto.text= “Adam Geist von Dea Loher”;  
texto1.text= “Regie: David Bösch”;  
//where vd1 is the instance name of the Flash Playback Component  
onEnterFrame = function () {  
PT = Math.floor(vd1.playheadTime);  
TT = Math.floor(vd1.totalTime);  
PP = Math.floor((PT/TT)\*100);  
if (PP == 100) {  
vd1.contentPath = “[http://portal5.theaterservice.at/flashvideo/www.burgtheater.at/Content.Node2/bilder/inszenierung/Begraebnis-Trailer---Flash.flv.flv](http://portal5.theaterservice.at/flashvideo/www.burgtheater.at/Content.Node2/bilder/inszenierung/Begraebnis-Trailer---Flash.flv.flv)”;  
texto.text= “Das Begräbnis von Thomas Vinterberg”;  
texto1.text= “Regie: Thomas Vinterberg”;  
vd1.play()  
onEnterFrame = function () {  
PT = Math.floor(vd1.playheadTime);  
TT = Math.floor(vd1.totalTime);  
PP = Math.floor((PT/TT)\*100);  
if (PP == 100) {  
vd1.contentPath = “[http://portal5.theaterservice.at/flashvideo/www.burgtheater.at/Content.Node2/bilder/inszenierung/Trailer---Der-goldene-Drache.flv.flv](http://portal5.theaterservice.at/flashvideo/www.burgtheater.at/Content.Node2/bilder/inszenierung/Trailer---Der-goldene-Drache.flv.flv)”;  
texto.text= “Der Goldene Drache von Roland Schimmelpfennig”;  
texto1.text= “Regie: Roland Schimmelpfennig”;  
vd1.play()  
}  
onEnterFrame = function () {  
PT = Math.floor(vd1.playheadTime);  
TT = Math.floor(vd1.totalTime);  
PP = Math.floor((PT/TT)\*100);  
if (PP == 100) {  
vd1.contentPath = “[http://portal5.theaterservice.at/flashvideo/www.burgtheater.at/Content.Node2/bilder/inszenierung/Trailer---Eine-Familie.flv.flv](http://portal5.theaterservice.at/flashvideo/www.burgtheater.at/Content.Node2/bilder/inszenierung/Trailer---Eine-Familie.flv.flv)”;  
texto.text= “Eine Familie von Tracy Letts”;  
texto1.text= “Regie: Alvis Hermanis”;  
vd1.play()  
onEnterFrame = function () {  
PT = Math.floor(vd1.playheadTime);  
TT = Math.floor(vd1.totalTime);  
PP = Math.floor((PT/TT)\*100);  
if (PP == 100) {  
vd1.contentPath = “[http://portal5.theaterservice.at/flashvideo/www.burgtheater.at/Content.Node2/bilder/inszenierung/Trailer---Faust-1\_webfinal.flv.flv](http://portal5.theaterservice.at/flashvideo/www.burgtheater.at/Content.Node2/bilder/inszenierung/Trailer---Faust-1_webfinal.flv.flv)”;  
texto.text= “Faust - Der Tragödie erster Teil von Johann Wolfgang von Goethe”;  
texto1.text= “Regie: Matthias Hartmann”;  
vd1.play()  
onEnterFrame = function () {  
PT = Math.floor(vd1.playheadTime);  
TT = Math.floor(vd1.totalTime);  
PP = Math.floor((PT/TT)\*100);  
if (PP == 100) {  
vd1.contentPath = “[http://portal5.theaterservice.at/flashvideo/www.burgtheater.at/Content.Node2/bilder/inszenierung/Wienerwald-Trailer.flv.flv](http://portal5.theaterservice.at/flashvideo/www.burgtheater.at/Content.Node2/bilder/inszenierung/Wienerwald-Trailer.flv.flv)”;  
texto.text= “Geschichten aus dem Wiener Wald von Ödön von Horváth”;  
texto1.text= “Regie: Stefan Bachmann”;  
vd1.play()  
onEnterFrame = function () {  
PT = Math.floor(vd1.playheadTime);  
TT = Math.floor(vd1.totalTime);  
PP = Math.floor((PT/TT)\*100);  
if (PP == 100) {  
vd1.contentPath = “[http://portal5.theaterservice.at/flashvideo/www.burgtheater.at/Content.Node2/bilder/inszenierung/Nur-Nachts-Trailer-QuickTime-DV-PAL.flv.flv](http://portal5.theaterservice.at/flashvideo/www.burgtheater.at/Content.Node2/bilder/inszenierung/Nur-Nachts-Trailer-QuickTime-DV-PAL.flv.flv)”;  
texto.text= “Nur Nachts von Sibylle Berg”;  
texto1.text= “Regie: Niklaus Helbling”;  
vd1.play()  
onEnterFrame = function () {  
PT = Math.floor(vd1.playheadTime);  
TT = Math.floor(vd1.totalTime);  
PP = Math.floor((PT/TT)\*100);  
if (PP == 100) {  
vd1.contentPath = “[http://portal5.theaterservice.at/flashvideo/www.burgtheater.at/Content.Node2/bilder/inszenierung/Peking-Opel-Trailer-QuickTime-DV-PAL.flv.flv](http://portal5.theaterservice.at/flashvideo/www.burgtheater.at/Content.Node2/bilder/inszenierung/Peking-Opel-Trailer-QuickTime-DV-PAL.flv.flv)”;  
texto.text= “Pekin Opel von René Pollesch”;  
texto1.text= “Regie: René Pollesch”;  
vd1.play()  
onEnterFrame = function () {  
PT = Math.floor(vd1.playheadTime);  
TT = Math.floor(vd1.totalTime);  
PP = Math.floor((PT/TT)\*100);  
if (PP == 100) {  
vd1.contentPath = “[http://portal5.theaterservice.at/flashvideo/www.burgtheater.at/Content.Node2/bilder/inszenierung/Trailer---Der-Zauberer-von-Oz.flv.flv](http://portal5.theaterservice.at/flashvideo/www.burgtheater.at/Content.Node2/bilder/inszenierung/Trailer---Der-Zauberer-von-Oz.flv.flv)”;  
texto.text= “Der Zauberer von Oz von L. Frank Baum”;  
texto1.text= “Regie: Annette Raffalt”;  
vd1.play()  
}   
}   
}   
}   
}   
}  
}   
}   
}   
}   
}   
}  
}  
}  
}
