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

AS3 Full Screen script, video crashed

Explorer ,
Jun 25, 2013 Jun 25, 2013

Copy link to clipboard

Copied

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

Views

12.0K

Translate

Translate

Report

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");

Votes

Translate

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

Copy link to clipboard

Copied

nothing crashed.

assign your video's fullScreenTakeOver property to false.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

3.jpg

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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;

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

I try but got compiler error

4.jpg

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

my error.  that should be,

flv_pb.fullScreenTakeOver=false;

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

try:

1. use a skin that has a fullscreen button

if that fails

2. try

flv_pb.fullScreenTakeOvwer=true;

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

you have a typo in fullScreenTakeOvwer

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

sorry, what you say? I didnā€™t get your meaning

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

can you see the bolded w in fullScreenTakeOvwer?

that's an extraneous letter that should be removed.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

same problem, black screen

6.jpg

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

then you have a video driver problem.

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Still facing the black screen problem.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

sorry to say how??

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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");

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

import the needed classes:

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

in this time. compiler error

2.jpg

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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);

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

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