Copy link to clipboard
Copied
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:
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.
Copy link to clipboard
Copied
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).
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
and did you remove that fscommand?
Copy link to clipboard
Copied
fscommand I put on the frame 1. screenshot above is a frame 2
whether on a frame 2 also need to be added fscommand?
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
what are you publishing?
Copy link to clipboard
Copied
for desktop and not android or ios.
so I publishes it into .swf, is it true?
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
I have uploaded my .fla file to google drive, please check:
Find more inspiration, events, and resources on the new Adobe Community
Explore Now