0 Replies Latest reply on May 16, 2008 2:06 AM by airkado

    Bringing video to front

    airkado
      Hi, i have a flash file, in which i have three videos, which are put one over each other. My problem is, that i want to bring a certain video to the front, but i dont know how to do that in actionscript? I have to check xml file to know, which file will be in front.
      This is the code:

      //FOR VIDEO
      var nc:NetConnection = new NetConnection();
      nc.connect(null);

      var ns:NetStream = new NetStream(nc);

      prvi.attachVideo(ns);

      ns.play("Cool Runnings .flv");

      //SECOND VIDEO
      nc.connect(null);

      var ns2:NetStream = new NetStream(nc);

      drugi.attachVideo(ns2);

      ns2.play("The.Condemned[2007]DvDrip.flv");

      //THIRD VIDEO
      nc.connect(null);

      var ns3:NetStream = new NetStream(nc);

      tretji.attachVideo(ns3);

      ns3.play("p-ag-cd1.flv");


      THE XML FILE:

      <?xml version="1.0" encoding="utf-8" ?>
      - <hotspots>
      <sequence>47</sequence>
      <hotspot id="1">0</hotspot>
      <hotspot id="2">0</hotspot>
      <hotspot id="3">0</hotspot>
      <hotspot id="4">0</hotspot>
      <hotspot id="5">0</hotspot>
      <hotspot id="6">0</hotspot>
      <hotspot id="7">0</hotspot>
      <hotspot id="8">0</hotspot>
      <hotspot id="9">0</hotspot>
      </hotspots>

      If hotspot ==1, then the video must be in front.
      i hope that someone can help me, because i have to do this for school project and i am beginner if flash.