Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




[F8] Fullscreen Flash (press Esc To Exit Full Screen Mode)



Hi all,
I would like to have a button that onRelease makes the flash content go fullscreen (you know, when that message appears - press Esc to exit full screen mode). I need it with AS2. I have found an AS3 code, that actually works with Flash8, but only for IE. Does anybody have an AS2 code, that works with all browsers? Thank you

Here is the AS3 code, if anybody needs it.
The code is on a button or movieclip:

on (press) {
if (Stage["displayState"] == "normal") {
Stage["displayState"] = "fullScreen";
}else
Stage["displayState"] = "normal"
}

and add <param name="allowFullScreen" value="true"/> in the HTML.



FlashKit > Flash Help > Flash ActionScript
Posted on: 07-09-2008, 12:16 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

[AS3.0] Working With The "Press Esc To Exit Full Screen Mode"
this site rocks!

I got my flash to work in SWF the way I want it to - going into Full Screen mode.

Flash automatically displays a message "Press Esc to exit full screen mode" which fades after a while

Where do I find this to edit it???

Is it a componenent?

My code is all in the documentClass as file and associated as files for the various classes I use. I have very little on the stage in flash itself - and intend to take stuff off there and move it all into classes as I get more knowledgeable about AS3.0...

thks

Exit After Escaping Out Of Full Screen Mode.
In Flash MX, how would I go about Exiting after escaping out of full screen mode?

Detecting Escape (ESC) Key Press In Full Screen Mode?
Hello all...

My first post on this wonderful forum (I have searched this great resource a great deal before).

I have an FLV player that I have programmed in AS3. The player goes into fullscreen when you press a button.

I have an event listener on the button that changes the stage mode to FULL SCREEN. This act in turn is detected with an event listener on the stage that detects an event.RESIZE.

This all works fine. When you click the button in normal mode I go to full screen mode and vice versa. More importantly the button changes (i.e. I line another button in the place of the previous button using coordinates) in full screen and move it off screen in normal screen so I have a "go full screen" icon button in normal mode and a "back to normal mode" icon on full screen.

MY PROBLEM is... Using the button to go into full screen mode changes the button to the 'close full screen' icon as expected. If I use the close full screen button in full screen mode it changes back. All perfect. My problem however is if I exit the full screen mode using the escape key the button does not change back so I am guessing the event handler is not triggered. Is there a way to detect the event of exiting full screen mode using the escape key rather than a button? The event.RESIZE on the stage does not seem to do it...

Hope that makes sense.

Please help

Exit Fullscreen Mode Needs To Do Something Else~
Hi!
I'm building a flash photogallery that opens into fullscreen. The fullscreen mode looks completely different from the normal state. I've created a button on the stage to go to Fullscreen. It works perfectly. The I also made a button that exits fullscreen which works fine. I've also put a case is the code that checks if you are in Fullscreen and you click the Esc button to close the fullscreen.

Problem 1: For some reason the keyCode check only works once.
Problem 2: When you are in fullscreen mode and then you go to another page or program thats open, the fullscreen escapes but the flash doesn't seem to recognize that it's escaped and closed but does not change the look and feel of the player...

How do i listen when the user leaves the gallery to use something else on their computer?

check this link out if you don't know what i'm talking about.
http://haejeanson.com/personal/miniA...bumViewer.html

Please help!
Thanks so much~
Haej

Exit Fullscreen Mode Issue
Hi!
I'm building a Photo gallery in Actionsctipt 3.0 with a fullscreen option. The Gallery costists of 2 completely different looks in each state. Normal state is a Mini Album Viewer and the Fullscreen state is a different looks that works as a slideshow.

in my constructor I have a listener on my view fullscreen button that essentially toggles the fullscreen.

example:
Code:

viewFSSSBtn.addEventListener(ConfigButton.BTN_RELE ASED, gotoFullscreen);

private function gotoFullscreen(deataEvent):void
{
if(stage.displayState == StageDisplayState.NORMAL)
{
fullscreen.visible = true;
minialbumview.visible = false;
stage.fullScreenSourceRect = new Rectangle (fsss.scaleFullSreenBox.x,fsss.scaleFullSreenBox.y ,fsss.scaleFullSreenBox.width,fsss.scaleFu llSreenBox.height);
stage.displayState = StageDisplayState.FULL_SCREEN;
stage.addEventListener(KeyboardEvent.KEY_UP, checkKeyPressed);
}
else
{
stage.displayState = StageDisplayState.NORMAL;
fullscreen.visible = false;
minialbumview.visible true;
}
}

Issue 1:
in the fullscreen mode when you click esc the the flash exits the fullscreen but does not recognize what mode it's in and keeps the fullscreen.visible = true;
I put a key pressed check on the constructor:

Code:

stage.addEventListener(KeyboardEvent.KEY_DOWN, checkKeyPressed);

function checkKeyPressed(event:KeyboardEvent):void
{
if (event.keyCode == Keyboard.ESCAPE)
{
stage.displayState = StageDisplayState.NORMAL;
fullscreen.visible = false;
minialbumview.visible true;
}
}

This check works once...why?

Issue 2:
If you have multiple monitors and you are in the fullscreen mode on one screen then you go to work on something else on the other screen the fullscreen exits. Is there a way to keep the fullscreen going? If not how can I tell what mode it's in? For some reason it exits fullscreen but stays the fullscreen state. meaning the fullscreen is visible.

Please help!

Haej

Checkout my example:
http://haejeanson.com/personal/miniAlbu ... iewer.html

Full Screen Mode With Flash MX
Hi, I want to go into full screen mode with Flash MX (title says it all I guess.) You know, so the flash movie takes up the enitire screen. Does anyone know how to do this?

HOw To View Full Screen Mode Flash 9
REcently many sites have taken away the ability to view full screen mode..


I have flash player 9...... and want to view my content in full screen mode.

When i put in the UrL... it loads the video in a small screen and i have to resort watching something i cant see...


I want to be able to change it to full screen



Is there anything i can type in url line or fix to get this to work in full screen mode....

Easing In Full Screen Flash Mode
I've successfully gotten my background to scale to the browser window, my question is this:

Is there anyway to get my movie clip (mc) to ease into the center postion, right now it simply jumps to the middle. Basically, I am looking to mimick the effect found on this site, without the bounce.

http://www.nulldesign.de/engine.nd

Here is my code thus far:

Code:
Stage.scaleMode = "noScale";
Stage.align = "TL";
bkg._width = Stage.width;
bkg._height = Stage.height
var stageXCenter = Stage.width * .5;
var stageYCenter = Stage.height * .5;
stageXCenter = stageXCenter - (mc._width * .5);
stageYCenter = stageYCenter - (mc._height * .5);
mc._x = stageXCenter;
mc._y = stageYCenter;

var stageListener:Object = new Object ();

stageListener.onResize = function () {
bkg._width = Stage.width;
bkg._height = Stage.height;

var stageXCenter = Stage.width * .5;
var stageYCenter = Stage.height * .5;

// Offset the center point with half of
// the clip width and height
// (you can also use the -= operator and simply this)
stageXCenter = stageXCenter - (mc._width * .5);
stageYCenter = stageYCenter - (mc._height * .5);

// place the clip with the offset
mc._x = stageXCenter;
mc._y = stageYCenter;
}
Stage.addListener (stageListener);
Any help would be greatly appreciated!!!!!!

Flash Player 9 - Full Screen Mode
Can anyone point me in the right direction for creating full screen swf in html as the demo's below.

http://labs.adobe.com/wiki/index.php/Flash_Player:9:Update:Full-Screen_Mode:Demos

I have installed the Flash 9 public Alpha

Thanks, Gareth.

Flash Player In Full Screen Mode Issue
On most video's, including all videos on MSNBC, when I go to full screen mode I am getting jittery video..almost like its missing every other frame or something. I am running SLI mode in nVidia 7950 GT's with a core duo 2.0's, 177.89 nvidia drivers. I've tried numerous different drivers.

Here is the weird part, when I am in full screen mode and right click to bring up " Adobe Flash Player Settings", all the sudden the video plays correctly (except I have the box in the middle of the screen). When I get rid of the box, the video goes back to being choppy. This only happens in full screen mode. I am running a 30" Apple Cinema display. Running the latest Flash Player 9.

Flash Video: Full Screen Mode And Captions
I am using an flvplayback component and an flvplaybackcaption component to create a video with captions read from an external xml file. The captions from the xml are read into a dynamic text box just below the video player. I am using a default Flash skin with full screen and caption icons.

Upon entering full screen mode, the captions default to play at the bottom of the video, just above the video controls - which is just what I want.

However, if I turn off captions in full screen mode, and then exit full screen mode, I no longer have control of captions when not in full screen mode. IE, I cannot get captions back on after exiting full screen mode, and the caption button in the skin becomes useless. If I re-enter full screen mode and enable captions, then when I exit full-screen mode, I have my normal usage of captions.

Has anyone run into this before? Or is this a known bug? And does anyone know of a work around?

Flash Player Starting Up In Full Screen Mode..
Does anybody know of a script that can be put into the "Start up" area of Windows so the flash player will open automatically in full screen mode?
If not a script, just any way to get the Flash Player to default in full screen mode at start up?

Forcing Flash Player To Play At Full Screen Mode
How do I force flash player to play my flah projecter movie in full screen but keep the movie at 100%? just increasing the backgrounf colour and removing the outside border of the flash player...... I don't want the movie to strech!

cheers

JC

Launching 3rd Party Apps From Flash While In Full Screen Mode
I was told that there is a script(s) that can be used to Launch 3rd party (ppt, pdf, etc) apps from Flash while in full screen mode. When the the 3rd party app launches, Flash window is reduced and after working with the 3rd paty app like saving a PDF document and when clicking on Flash app window it resumes to Full screen mode. Can some one point me to this screen.

FYI: if in full screen mode in a Flash app for CD-ROM, and if you try to launch a pdf document, it is launched in the background on then PC and in foreground on the Mac. Currently we use Director to control save frile from CD-ROM but sometimes it is a pain. Help will be much appreciated.

Help. How Do I Make My Flash Movie Run In Full Screen Mode With No Windows Title Bar?
Please help,

How do I make my Flash Movie run in full screen mode with no Windows Title bar?

Thank you.

Why Do My Videos Take Over The Screen When In Fullscreen Mode?
My flash presentation contains video which I imported using the flash video component. When I play the presentation 100% size they play fine - contained within there window on the screen - When I play the presentation in full-screen mode they take over the whole screen. They also play untill the video is finished whithout moving onto the next scene. Any ideas?

Thanks

Full Screen / Exit Button
Is there any actionscript to force a .swf to go full screen without going through a web page?

What's the code to exit out of the full screen?



Thanks in Advance!!!

Closing A Full Screen Swf. Using An Exit Button Help Please
hi all

anyone out there know how to close a swf down by clicking on an exit button.....anyone know the action script required for this please help.....
need this urgently

thanks

J

Exit Button For A Full Screen External .swf
This is prbably something really easy, but I've looked every where and can't find the answer.

I've loaded a full screen game.swf into my project and now I need a button to exit out of it. I used:

this.loadMovie("game.swf", "window". 5);

but now I can't get a button on top of the fullscreen game to exit to my _root. I don't think the game is actually loading into the mc "window", so I can't just drop my exit button into "window". Maybe if someone knows how to change the _level of my button, that might work.

Any help would be appreciated, thanks.

Full Screen Mode...HOW?
There is this program called 'ScreenTime' that converts your flash projector into a screensaver - complete with installation file and all - heres the problem: If i have a flash that doesnt fit the WHOLE screen i get to see that..uhmm...you know the whole frame and all the stuff thats around it when you activate a projector - i wanna know if its possible to either pre-program a 'full screen-mode' or if its possible to sort of cover the rest of the screen with some color - like you can do in Director ??...i looks kinda stoopid as it is now ....help?!

Full Screen Mode
Is there a way to make a movie full screen in the browser when it loads?

Full Screen Mode
I am trying to have things set so that when someone visits my site, the movietakes up the full browser window and not just part of it. I can resize the flash object within Frontpage or Dreamweaver, but this does not help much with different screen resolutions.

I have been told that this cannot be done without an extension, can someone please confirm?

Thanks

Full Screen Mode
I want to view my flash movie, so when it runs it loads the flash movie in full screen automatically.

I need to know how to setup the properties or whatever I need to do so that it will show in full screen.

I think I need to create an .exe file, within Flash or using Director if I can.

For example enhanced cd’s show in full screen mode, that’s what I want to do.

Does any one know on how to do this?


Thanks for any help, and thanks in advanced for any help given.

Full Screen Mode
i have a presentation and i need some help to run it as a full screen mode..

thanks alot

Full Screen Mode?
I have used the loadMovieNum("movie.swf", 0); command at the end of 2 movie files, but each file is different in size & I want them all to me maximized or in full screen mode so that it looks better. How would I do that?

Full Screen Mode
Hi, i'm busy producing a flash projector. I want to be able toburn it to a cd and then when the cd is put in the drive.....load up atoumatically. and start up in full screen mode. Any help??????

Re: Full Screen Mode
How do I script my SWF's so they will automatically open and play in
FULL SCREEN MODE?

Full Screen Mode
Hi, I'm trying unsucessfully to create a button that switches a site to full screen.

Any pointers would be most helpful.

thanks

Full Screen Mode HELP
hi I want to do full screen web page like this : http://www.hrubes.com/ can tell me how ?

Full Screen Mode
I'm trying to go full screen by using the external interface...

i am able to communicate with the flash via JS but there it doesn't go full screen.

Is there any security issue concerning this?

Full Screen Mode
Hi there,

just posting again to see if anyone around here could assist me in finding how to create a website that will expand to full screen size....

im not looking for a massive pop up screen type, just the the kind that fills the whole screen and allows the user to escape by a close button...if you know what im saying !!

im guessing its something to do with HTML, or is it something in the lines of actionscript!!

Help would be extremley appreciated!!


thnx in advance!!

Full Screen Mode
Could someone please show me how to do the full screen mode?

Thanks.

Full Screen Mode.. Please
hi,
i would to make my flash movie in fullscreen mode so i have added the "fscommand" on the first frame of my movie.
This is ok and the movie play in fullscreen mode ONLY from the proiector!!
What i have to do if i want start him from an html page? i must open an html window with the screen size (depending the resolution the user have). The command show above is wrong.
Please help me..

P.S.: excuse me for my english.. it's so bad!!!!!!

Full Screen Mode? How Do I Do It?
I want to create a site to exhibition my photographs using these photos as the interface. whats the best way to do this? I'd like the layout to look like this www.zetauka.com.

any help would be much appreciated

Full Screen Mode
Hi everyone!

Could someone please explain to me how do I create site in a full screen mode... Maybe something less complicated )

Oh, yes...or how do I make site in that pop-up mode...???

Thank you so much!!!

Full Screen Mode
Will full screen mode pixelate my images in flash? or affect my SWF in a any way (apart forom being full screen.)

Please direct me on any page sizes I should be working to. (If there are any)

Thank you.

How To Change Size Of "Press Esc To Exit Fullscreen" Message
I (and my client) have noticed that the size of the "Press esc to exit fullscreen" message seem to vary from site to site. For example, on Youtube the message is quite large, while at eurogamer.net the text is smaller.

How do one adjust the size?

Browser In Full Screen Mode
Hi,

I'd like to know if there is a way to open a maximized window using -> geturl.

tks,
William

How To Close Swf In Full Screen Mode?
hi,

i understand the following can close swf:

on(release) {
fscommand("quit",true);
}


i tried it when the swf is in full screen mode, it doesn't close the swf.

please let me know how to do it for flash in full screen mode.

thank you very much.


lawrence how

Mailto's In Full Screen Mode
Hi All,

I have a flash project that opens up fullscreen. I have email addresses on my project's contact page. The coding I have for linking the email is...

on (release) {
getURL("mailto:name@something.com", "_blank");
}

It opens the email window but just for a spilt second then goes behind the full screen. I tried everything, for example... making it fullscreen false, the address, then true again or making it a fullscreen html page. Nothing worked.

Do anyone know of the correct script or work around for opening up an email screen on top of my .exe .

Full Screen Mode Question
Hey everyone,

I have this video set up with the following code:


Code:
fullScreenButton.onRelease = function (){
goFullScreen();
}


function goFullScreen()
{
Stage["displayState"] = "fullScreen";
}
function exitFullScreen()
{
Stage["displayState"] = "normal";
}

{
fullscreenCM.hideBuiltInItems();
}
And it works just fine, but I'm wondering if there's any way for me to have the player controls disappear when it's in full screen mode so that all you see is the video.

Here's what I have so far:

http://www.24fans.net/videos/season_7_trailers/test/

You click on the video for full screen.

Thanks.

After Full Screen Mode: No Focus
I am developing a video player where the user can switch to full screen mode: works fine! However, when the user goes back to normal mode, e.g. by hitting ESC, then the application loses focus. That means that the user first has to click into the application and then he can click one of its buttons. Of course, this is confusing. Any workaround?

Development environment: OSX/Safari/Flex Builder 3

- Felix

Full Screen Mode Breaks Everything?
I have an app that consists of a video and overlays that occasionally appear on top of the video. This works fine when not in full screen mode, but when in fullscreen, the overlays simply don't appear. WTF? I need to demo this in an hour and I can't figure out how to fix it....please help!

Full Screen Mode Is Not Allowed?
Hey, I'm kinda noob in AS3 or even Flash, but i wanna make my swf load some flv file in a video instance and make it fullscreen.

the flv loading is a success, but to make it fullscreen is a different matter.

I use a standalone actionscript file :

ActionScript Code:
private function fullScreenBtnClick(e:MouseEvent) {
    try {
        switch(stage.displayState) {
            case StageDisplayState.NORMAL:
                stage.displayState = StageDisplayState.FULL_SCREEN;
                trace(stage.displayState);
                break;
            case StageDisplayState.FULL_SCREEN:
                stage.displayState = StageDisplayState.NORMAL;
                trace(stage.displayState);
                break;
        }
    } catch (err:SecurityError) {
    }
}

When i test the movie, i can't go fullscreen and the trace says "null".
so, I just decide to publish it anyway.
I already use this tag at my page :


ActionScript Code:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="400" height="400" id="testplay" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    [b]<param name="allowFullScreen" value="true" />[/b]
    <param name="movie" value="testplay.swf" />
    <param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />
    <embed src="testplay.swf" quality="high" bgcolor="#ffffff" width="400" height="400" name="testplay" align="middle" allowScriptAccess="sameDomain" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

When I publish it in my site, this warning shows up at the browser


ActionScript Code:
SecurityError: Error #2152: Full screen mode is not allowed.
    at flash.display::Stage/set displayState()
    at FLVPlayer$iinit()

I can't play the flv (the video instance isn't showing) but I still can go fullscreen...

What is wrong with that... Can someone help me with that?

Full Screen Mode On Start Up
i want to enable full screen mode automatically when i play the swf file using adobe flash player (not embing it in the web page, just by running the adobe flash player alone), without select the 'view full screen' option

is it possible?

FLVPlayback In Full Screen Mode
While in Full Screen mode (in Flash Player), an error occurs when entering a frame that contains a FLVPlayback component and a button within a MovieClip. The error is thrown during the attempt to "addEventListener" to the button. The error only occurs in Full Screen mode though, and only if a FLVPlayback component is present.

To recreate the error, open this file in the latest Flash Player (not plugin), and click the buttons:
Sample SWF

The source file can be found here:
The Source

Can anyone explain what's going on with the Full Screen mode that would cause the error when attempting to assign an EventListener to a button?

Thanks!

Play At 100% In Full Screen Mode?
Hello, hope you guys can help me out with this one. How can I make my flash presentation play at 100% in full screen mode? At the moment when I click full screen it increses the scale of the presentation to fill the whle screen - I would like the presentation to stay in scale but have a white border filling the rest of the screen.

My presentation is made up of several swf files which are linked together in the main file with action script.





























Edited: 09/01/2008 at 04:03:49 AM by dazzlah

Full Screen Mode Confliction
Discovered a bug with my online portfolio... When viewed in full screen mode (right click) you can't fill out the php contact form.

Anyone have a theory?

www.catchymedia.co.uk

Wanted:exit Button From Swf Sitting In Html Full Screen
HI all
Need an exit button from swf sitting in html browser which has been full screened via javascript to take out the menus and scrolls bars etc.( so no minimum exit etc-this option used because of full screen ability in assorted resolutions.)

....dont think fscommands work.
using flash mx2004.
any ideas pls?

shaf

Copyright © 2005-08 www.BigResource.com, All rights reserved