Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 142955

Re: AS3 Full Screen script, video crashed

$
0
0

I try this but got these compiler errors

 

package  {

          import flash.display.SimpleButton;

          import flash.events.MouseEvent;

 

          public class clickbutton extends SimpleButton {

 

                    public function clickbutton() {

                              this.addEventListener(MouseEvent.CLICK, clickF);

                    }

 

                    private function clickF(e:MouseEvent):void{

                              var nc:NetConnection=new NetConnection();

                              nc.connect(null);

                              var ns:NetStream=new NetStream(nc);

                              var video:Video=new Video();

                              addChild(video);

                              video.attachNetStream(ns);

                              ns.play("video_test.flv");

                    }

          }

}

 

1.jpg


Viewing all articles
Browse latest Browse all 142955

Trending Articles