Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • EspaƱol
      • FranƧais
      • PortuguĆŖs
  • ę—„ęœ¬čŖžć‚³ćƒŸćƒ„ćƒ‹ćƒ†ć‚£
  • ķ•œźµ­ ģ»¤ė®¤ė‹ˆķ‹°
0

AS3 Full Screen script, video crashed

Explorer ,
Jun 25, 2013 Jun 25, 2013

I load external video with playback component (skin over play stop seek mute vol.swf), its working great but when I use 

fscommand("fullscreen", "true");

on my first scene (first keyframe in time), and after that when I reach my video scene. I got just black screen

1.jpg

2.jpg

TOPICS
ActionScript
13.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jun 30, 2013 Jun 30, 2013

use the netstream class:

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("yourvideo.flv");

Translate
Community Expert ,
Jun 25, 2013 Jun 25, 2013

nothing crashed.

assign your video's fullScreenTakeOver property to false.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 25, 2013 Jun 25, 2013

Sorry to say. Can you please tell me how?? In the property i can’t find ā€œfull screen take over - falseā€.

3.jpg

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 25, 2013 Jun 25, 2013

click the flvplayback component shown in your screenshot.  in the properties panel assign it an instance name (eg, flv_pb).

click frame 1, layer 3 and in the actions panel, add:

flv_pb.fullStageTakeOver=false;

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 25, 2013 Jun 25, 2013

I try but got compiler error

4.jpg

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 25, 2013 Jun 25, 2013

my error.  that should be,

flv_pb.fullScreenTakeOver=false;

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 25, 2013 Jun 25, 2013

Sorry to say boss in this time I didn’t received any compiler error but same previous problem. Black screen come

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 25, 2013 Jun 25, 2013

try:

1. use a skin that has a fullscreen button

if that fails

2. try

flv_pb.fullScreenTakeOvwer=true;

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 25, 2013 Jun 25, 2013

sorry to say boss, same problem

1. when i try fullscreen skin then got black screen

2. got compiler error

itry this both

flv_pb.fullScreenTakeOvwer=true;

flv_pb.fullStageTakeOver=true;

5.jpg

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 26, 2013 Jun 26, 2013

you have a typo in fullScreenTakeOvwer

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 26, 2013 Jun 26, 2013

sorry, what you say? I didn’t get your meaning

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 26, 2013 Jun 26, 2013

can you see the bolded w in fullScreenTakeOvwer?

that's an extraneous letter that should be removed.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 26, 2013 Jun 26, 2013

same problem, black screen

6.jpg

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 26, 2013 Jun 26, 2013

then you have a video driver problem.

you could try updating your video driver.  if that fails, you can try to disable hardware acceleration.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 27, 2013 Jun 27, 2013

I follow these steps and disable the hardware acceleration. after that I publish may file but same problem

http://forums.adobe.com/thread/891337

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 30, 2013 Jun 30, 2013

Still facing the black screen problem.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 30, 2013 Jun 30, 2013

then you'll need to remove the flvplayback component and use the netstream class to play your video.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 30, 2013 Jun 30, 2013

sorry to say how??

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 30, 2013 Jun 30, 2013

use the netstream class:

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("yourvideo.flv");

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 30, 2013 Jun 30, 2013

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 01, 2013 Jul 01, 2013

import the needed classes:

import flash.media.Video;
import flash.net.NetConnection;
import flash.net.NetStream;

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jul 01, 2013 Jul 01, 2013

in this time. compiler error

2.jpg

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 01, 2013 Jul 01, 2013

a simplebutton can't have children.

add the video the the button's parent.  assuming your button's already been added to the display list:

this.parent.addChild(video);

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jul 01, 2013 Jul 01, 2013

still problem boss

i try this

package  {

          import flash.display.SimpleButton;

          import flash.events.MouseEvent;

          import flash.media.Video;

          import flash.net.NetConnection;

          import flash.net.NetStream;

 

          public class clickbutton extends SimpleButton {

 

                    public function clickbutton() {

                              this.addEventListener(MouseEvent.CLICK, clickF);

                              this.parent.addChild(video);

                    }

 

                    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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 01, 2013 Jul 01, 2013

you can't add the video until it's created.

and, you still have the line of code that triggered the error in your message 21.

replace that problematic line of code (was 19, now 20) with the code i suggested.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines