Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jun 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    flash video rotator - help

    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]);


    }

  • #2
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    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.
    jeremy - gnomeontherun
    Educated questions often get educated answers, and simple questions often get simple answers.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •