Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

AS3 FLVplayback Full Screen, I got just black screen

Community Beginner ,
Feb 02, 2016 Feb 02, 2016

Hello, I have a problem on FLVPlayback, I am using actionscript 3, AdobeFlash CS6, flashplayer 11

in this case, I have two frames, namely:

on frame 1, I fill in the code:

stop ();

fscommand ("fullscreen", "true");

toframe2.addEventListener (MouseEvent.CLICK, nextonee);

nextonee function (event: MouseEvent): void {

gotoAndStop (2);

}


On  frame 2 is FLVPlayback with a resolution of 1280 x 720, and I resize it to 1050 x 590.60 because out of the stage.

When I publish and I run the SWF file its result is in frame 1 success and be fullscreen mode, and when I click the button to get to the frame 2,  I got was a black screen,

What is wrong? please help, thank you

This is the screenshot:

1.png

2.jpg

TOPICS
ActionScript
1.6K
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 , Feb 02, 2016 Feb 02, 2016

remove it everywhere from your file.

if you're publishing a projector or air file you should use:

stage.displayStage='fullScreen'.

if you're publish anything else, specify.

Translate
Community Expert ,
Feb 02, 2016 Feb 02, 2016

assign your component's fullscreentakeover property to be false and if that's a web-based project, you can't initiate fullscreen without user interaction (like a mouse click).

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 Beginner ,
Feb 02, 2016 Feb 02, 2016

Hallo, kglad

This is not for web. if you mean like this? if so, the results remain the same problems that only show black screen. I wrote the code In frame 2:

video1.fullScreenTakeOver = false;

if the above code is correct?

3.png

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 ,
Feb 02, 2016 Feb 02, 2016

and did you remove that fscommand?

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 Beginner ,
Feb 02, 2016 Feb 02, 2016

fscommand I put on the frame 1. screenshot above is a frame 2

whether on a frame 2 also need to be added fscommand?

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 ,
Feb 02, 2016 Feb 02, 2016

remove it everywhere from your file.

if you're publishing a projector or air file you should use:

stage.displayStage='fullScreen'.

if you're publish anything else, specify.

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 Beginner ,
Feb 02, 2016 Feb 02, 2016

it works! thank u

on frame 1, I remove fscommand.

on frame 2 i input the code:

fscommand ("fullscreen", "true");

video1.fullScreenTakeOver = false;

but the purpose of my application is in frame 1 later there is the button "Full screen" and "Exit full screen", when the application is opened then my application is already in fullscreen, but if the code fscomand deleted on frame 1, then the application can not be fullscreen when opened.

the point is, when the application is opened, the display must be fullscreen, and when entered into the second frame, the frame 2 can run smoothly not happen blackscreen.

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 ,
Feb 02, 2016 Feb 02, 2016

what are you publishing?

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 Beginner ,
Feb 02, 2016 Feb 02, 2016

for desktop and not android or ios.

so I publishes it into .swf, is it 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
Community Expert ,
Feb 03, 2016 Feb 03, 2016
LATEST

no, if you're publishing something execute on a desktop you should be publishing an exe (win) and/or app (mac) and testing using the exe or app file

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 Beginner ,
Feb 02, 2016 Feb 02, 2016

I have uploaded my .fla file to google drive, please check:

popp.fla - Google Drive

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