0 Replies Latest reply on Jul 11, 2007 6:10 AM by Bob28

    Dynamically resizing an FLV window

    Bob28
      Help,

      I trying to see if there is anyway to dynamically change the FLV window size when I roll over the hit area with my mouse. Outlined below is what I tried, But I believe that the FLV is set when the file is first loaded and can not be changed.

      stop();

      var vc:NetConnection = new NetConnection();
      vc.connect(null);
      var vs:NetStream = new NetStream(vc);
      vs.play("netmuze_video_samplead3.flv");
      var vid:Video = new Video();
      vid.attachNetStream(vs);
      vid.height = 120;
      addChild(vid);

      function onadBtnRollOver(evt:MouseEvent):void{

      gotoAndPlay(2);
      vid.height = 240;

      }
      this.adBtn.addEventListener(MouseEvent.ROLL_OVER, onadBtnRollOver);

      Thanks in advance if you can give me any guidance.