2 Replies Latest reply on Mar 31, 2010 1:10 PM by mrlash1985

    Swishmax1 flv player

    darkedenlog

      Hi

       

      Im trying to make vido player in swishmax1. Problem is, there is not any video object here, so i opened the flash cs4, added VideoPlayer component on the stage, named it "my_video" and exported the swf player (as2). Now i trying to load this into my swf in to swishmax1. But of corse something is wrong. Heres the code:

       

      onload () {
          
          component_mc.loadMovie("VideoPlayer.swf");
          
          connection_nc = new flash.net.NetConnection();
          connection_nc.connect(null);
          
          stream_ns = new flash.net.NetStream(connection_nc);
          component_mc.my_video.attachVideo(stream_ns);
          
          stream_ns.play("intro.flv");
          
          stream_ns.onStatus=function(infoObject){
              
              if(infoObject.code=="NetStream.Play.Stop"){
                  stream_ns.seek(0);
                  stream_ns.play();
              }
      };
          
       
      }
      


      Any ideas ?