PDA

View Full Version : flash video rotator - help



flashman
06-16-2009, 11:38 PM
hi :)
i am a new member here
i want help from any one know actionscript3 for video and xml files

i don't know how i can creat rotator

i was loaded the links from xml but just one file work

how i can creat rotator run the files from fist to the last file?

this is the code:
var xmlLoader:URLLoader = new URLLoader();
var tripsURL:URLRequest= new URLRequest("video.xml");
xmlLoader.addEventListener(Event.COMPLETE,xmlLoaded);
xmlLoader.load(tripsURL);

var tripsXML:XML = new XML();
var imarray:Array = new Array();
tripsXML.ignoreWhitespace= true;

function xmlLoaded(evt:Event):void{
tripsXML =XML(xmlLoader.data);

for ( var tripname:String in tripsXML.movie){
trace(tripsXML.movie[tripname].link);
var link:String = tripsXML.movie[tripname].link;
imarray.push(link);
//


}
var i:int = new int();

var text1L:TextField = new TextField();
//

//
play(imarray[i]);


}

gnomeontherun
06-22-2009, 10:04 AM
Do you have more code? You just should have to have an variable that keeps track of the current video, and increments when its done playing.