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




[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



KirupaForum > Flash > ActionScript 3.0
Posted on: 12-11-2007, 04:42 PM


View Complete Forum Thread with Replies

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

[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.

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

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.

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 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?

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

Create A Proyector In Full Screen Mode
Hi Gods of flash!!!

I am trying to make a proyector file, but i need to do it in full screen mode when it shows. please if somebody can help me, it is really urgent.

whit this file i´m going to make an autorun for a CD, but when the cd starts, the proyector file shows in a small window, y need to do it in full screen mode.

i´m sorry for my english, i´m from ecuador!!!

thanks
Pablo

How Can I Display My Site In Full Screen Mode
I have worked with the FScommand for setting the fullscreen to true.

When i open the SWF file alone it displays in Fullscreen, but if i open the HTML document, e.g. Index.htm which open the SWF file it displays the Internet Explorer menu and thus it is not in Full Screen mode. How can i lose the IE menu?

A solution to this is much appreciated.

Projector Format Full Screen Mode?
can i make it so that the projector file opens up in full screen mode? for both mac and pc. i know i can make a html file that does taht, but im concerned with the exe. thanks for the help!

How To Make A .exe Open In Full Screen Mode
hi there,

anyone know how to make a .exe flash file open automatically in full screen. Also is it possisble to make it open immediately when a cd-rom is inserted rather than have the user click on the .exe file?

thanks very much for the help

michael

Saving .swf File For Full Screen Mode?
I'm recently getting involved in Flash MX. Does anyone know how to save a .swf file so the website opens up in a full screen mode in the browser window?
http://www.altgraphicdesign.com

Pixel Fonts In Full Screen Mode
Hi,

When I view my projector file in full screen mode, my pixel fonts distort. Any way to avoid this?

Cheers

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....

[CS3] Why Is My Bg Graphic Disappearing In Full Screen Mode?
Scenario: Designing an immersive environment for kids to explore and play around. Done using AS3 and Flex, although this could probably just as well been done in Flash CS3. The reason for the full-screen is allow the demographic the website is targeted at - very young kids (ages 3-6), to play with the mouse, clicking and exploring stuff while being "contained" within the full-screen flash movie... so they won't inadvertently click on things they shouldn't, like accidentally giving focus to something else, or clicking and dragging things into the trash, or other possible disasters that could happen when you've got a child who barely knows how to operate a computer controlling a mouse with no parent around...

Problem: I've got the full screen scrolling happening fine, however, because the containing background (which is a movieclip) is very wide (because it's meant to be a panorama that can be scrolled a good distance either side and a little up and down), when viewing it in full-screen, the background disappears. Now, I know it's just the size of the bitmap sprite being used that's dying because I've included a test SWF in the movieclip as well. You'll see that even though the graphic disappears, the SWF within the same movie clip stays.
This scrolling panorama works perfectly fine when in normal viewing mode. It's only when in full screen, and using a very wide graphic (it seems to vary according to monitor/computer, but 3000+ pixels wide starts to cause problems) that the graphic starts to disappear when scrolling from the center of the graphic (the amount changes again, depending on monitor/computer).

Can anybody explain to me why this is happening? Also, the full screen doesn't seem to work on Mac, or at least Firefox on Mac. Why is that?

You can see the example at www.flyingbark.com.au/rob/zigbyWebsite.html

The controls are as such:
To scroll, move your mouse to the outside edges of the movie/window. The closer to the edge, the faster the scroll.
To toggle between normal and full screen mode, just click on the movie with your mouse.
To toggle the different scale modes of the movie while in full-screen mode, use the mouse wheel.



You'll notice I've got updating information in the upper right hand corner. Hopefully that'll help narrow down the problem.

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!!!!!!

Is It Possible To Have A Site Open In Full Screen Mode. I Can Do It With A Btn.
If I have a button on the stage, and click on it, I can open a web page in full screen mode. Is there a way to use the same full screen code to open a web page in full screen mode without needing the button. I tried just running the code but it didn't work.

Regards,

Glen Charles Rowell

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.

Windows Projectors In Full Screen Mode
Publishing a windows projector from an up to date copy of flash CS3 for mac (4th September 2008).

The projector works fine until I add the fscommand("fullscreen","true"). This does make it run fullscreen but buttons and things no longer to work. And in some cases the whole content area is rendered grey.

Exiting fullscreen mode from the view menu makes the program run normally again.

Animation Stalls When Going To Full Screen Mode
I have a class named Dot.as that is animating a dot (12 instances of the dot) to a new Y position using the Tween class. In my main as class, I have a toggleButton that toggles the swf in the html full screen or not. Pretty simple. But if the dots are animating and the full screen button is clicked, the animation stops, then sort of starts where it left off one the full screen is rendered. But where the animation left off is incomplete, so the dots that were in process when full screen was clicked, do not make it to their new Y position.

On the main.as, ChartLines.as is using Dot.as and Dot.as is what has the tween. How do I stop/start the animation. I tried removeChild and then tried adding a new chartData child, thinking that would restart the animation, but it doesn't seem to work.

_chartData = new ChartLines(this, _appData.xmlData.datapoints);
addChild(_chartData);
_chartData.x = 80;
_chartData.y = 94;

I cannot find through Google any reference as to why my animation chokes and then continues when it goes full screen. Any help would be appreciated.

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