FullScreen ESC capture

Hello!
I have an AIR Application that runs in stage.displayState=StageDisplayState.FULL_SCREEN_INTERACTIVE;
I want to catch the ESC key and resize the window from inside the code because some adjustments are to be made first.
I tried:
this.addEventListener(KeyboardEvent.KEY_DOWN,cancelESCMinimize,true);
AND
private function cancelESCMinimize(event:KeyboardEvent):void
     if(event.keyCode==Keyboard.ESCAPE)
          //Make Adjustments;
          //Restore;
But that doesn't work.

It does, thank you!
preventDefault was what I was looking for.

Similar Messages

  • MBP i7 crashes

    I own a MacBookPro (15” i7, 4GB, 10.6.4) and having problems with "random" crashes. These crashes occur in different situations. In all cases the screen turns black and any sound that was playing in the last couple seconds will loop while the screen is black. The computer is frozen and the only solution I to hold down the power button and then restart the machine all over.
    These problems might have started when I attached an external screen to my MBP with a MiniDisplayPort-DVI cable. Now I don’t use an external screen anymore but the problem remained.
    A few examples when the problem can occur (most of the time I don’t have a problem while doing these operations):
    -When working in Photoshop (same for CS4 and CS5) and doing simple commands like trying to warp an image.
    -When I was watching something in Silverlight in fullscreen and left the fullscreen (esc).
    -When I watched a movie in Quicktime and wanted to see this in fullscreen.
    -When I’m starting up the system and directly start up GoogleEarth or PhotoBooth.
    I performed the (extending) hardwaretest and it came up clean. I read about similar problems but I'm still not sure what the problem is and what I should do.
    I hope someone can help me.

    Hi,
    I bought a new 2010 MBP 15" Intel Core i7 about 6 weeks ago and I'm very disappointed with it as it crashes quite often. Twice today in the space of an hour.
    It seems to happen if I use it then leave it for a short time then when I come back to it everything is frozen. The mouse doesn't respond, nothing responds. I have to press the power button to switch it off and reboot. It doesn't happen all the time but it is getting more frequent and very annoying.
    I switched to the macbook after years of windows because I was lead to believe they are more stable so you can imagine how disappointing this is.
    Does anyone know why this is happening?
    Rgds
    Paul

  • Override flash player ESC function in fullscreen?

    I have a video player (using a video MC created via the
    library and pulling in video via NetConnect) that I have set for
    fullscreen using the fullscreen actionscript 2.0 code to set the
    stage for fullscreen. (seen below). Once the user goes full screen,
    then the controllers I built fade out, new fullscreen controllers
    show, then hide via mouse movement / key press and the video scales
    by 5%.
    When a user presses the ESC key they exit via the built-in
    Adobe code for the Player. I have a listener set up (code below)
    for the ESC key, which functions AFTER someone exits fullscreen
    mode. What I need to have happen is that once someone exits
    fullscreen mode via the ESC key the player resizes and the original
    controls show....without having to press the ESC key twice. Which
    is what happens currently = once to exit (Adobe's code), once to
    trigger the listener that tells the video and controllers to do
    what they should do (my code).
    Possible to override this? Create a unique listener for
    whatever ESC code that Adobe uses?
    Basically I need a way to trigger the show controls / video
    resize once a user goes back to normal mode.
    Thanks!

    yes, this is for a live site. I found that for some reason
    Adobe felt the need to block all code in the name of
    security...which is fine but they should have at least allowed
    something like a listener to trigger another call.
    One thing that I thought could possibly work would be
    detecting the stage change...although the first attempt I had at
    that didn't do diddly. Seems that if I can at least detect that
    Stage["displayState"] == "normal"; then something should work.
    I looked around on the Adobe Lab sites for people with
    "samples" of the fullscreen script and it looks like nobody else
    was trying to set up anything similar, i.e. they stuck with the
    "ESC" code that was built-in.
    So...any suggestions would be greatly appreciated!
    Thanks!

  • Seems to capture but then won't quit after ESC pressed?

    We have new XRAID with Apple FC interface & running on Mac G5 and 10.3.9. We use FinalCutPro 4.5 and it all seems to capture but then won't quit after ESC pressed. The pinwheel spins and the Mac is unaccessible then after maybe 3 hours it finishes and everythings ok. Way too much time for a 15 minute capture! Aja Kona2 capture card and they have had me adjust the settings in the xraid admin but no change. Capture of a few seconds are usually finalized instantly. Any Clues?

    Same problem if you don't choose capture now ?? I've always though capture now to the raid was a BIG NO NO.

  • Disable ESC in Fullscreen (AIR application)

    Hi All,
    I just created a AIR application in flash builder and started it in full interactive mode (stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE).
    Is there a way i can disable ESC pressing that will take me back to regular mode?
    P.S. my purpose is to run AIR application in fullscreen mode (on linux), this will be the only application that is running on the computer so i don't want the user to press ESC and go back to regular mode.
    Thanks in advance,
    Lior

    this worked with a recent nightly sdk
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:s="library://ns.adobe.com/flex/spark"
    xmlns:mx="library://ns.adobe.com/flex/halo"
      applicationActivate="windowedapplication1_applicationActivateHandler(event)">
    <fx:Script>
    <![CDATA[
    import flash.events.NativeWindowDisplayStateEvent;
    import flash.events.NativeWindowBoundsEvent;
    import mx.controls.Alert;
    import mx.events.FlexNativeWindowBoundsEvent;
    import flash.events.KeyboardEvent;
    import flash.events.MouseEvent;
    import mx.events.AIREvent;
    import mx.events.FlexEvent;
    protected function windowedapplication1_applicationActivateHandler(event:AIREvent):void
    stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
    stage.addEventListener(KeyboardEvent.KEY_DOWN, stopesc);
    private function stopesc(e:KeyboardEvent): void
    if( e.keyCode == Keyboard.ESCAPE )
    e.preventDefault();
    protected function button1_clickHandler(event:MouseEvent):void
    this.close();
    ]]>
    </fx:Script>
    <s:Button x="302" y="296" label="Button" click="button1_clickHandler(event)"/>
    </s:WindowedApplication>

  • Using ESC when in Capture mode

    New to this application but it looks really good. However, during Capture mode the Esc key does not work. The only way to cease capture is to Stop on the Camcorder (Panasonic 250 GC).

    http://www.fcpbook.com/Misc1.html
    Select the Easy Setup DV-PAL before you start to capture.
    Al

  • System crashes when i press esc to stop capturing now

    I capture video using the Capture Now button and when I press the Esc button to stop the capturing, the Video deck doesn't respond and continues to play the tape. The program doesn't respond and I have to force Quit.
    The External Maxtor 250 Gb hard drive then says that only 1,95 Gigs are left and after I restart, in the clips folder an unamed_av clip appeares. When i drag it into the trash and empty the trash the hard drives works ok and the 121 Gigs of space come back again.
    What is going on?
    Does anybody have the clue?
    It is very annoying and every time I have to recapture.
    It mostly happens with long clips.
    I use a G5 Imac OS X version 10.3.5.
    Final Cut Pro 5 HD.
    Can anybody help please?
    Thank you indeed.
    M
    Imac   Mac OS X (10.3.5)  

    1. verify the disk is not formated mc-dos. It should be formatted Mac OS Extended. Journalling can be either on or off - it does not seem to matter for most people.
    2. If you can avoid it, do not use Capture Now. In the Logging settings- set an In point ~5sec from the beginning of the tape and an End point ~ 5 sec from the end of the tape then use Batch Capture.
    3. If you can not avoid Capture Now, make sure the capture limit is set to 30 minutes or so and capture is smaller time chunks.
    good luck.
    x

  • How can I capture then convert to BMP a screendump from a device in Epson ESC/P printer format?

    I am using a Tektronix VM700 which can only output a screendump by "printing" to the serial port. I want to capture this data (of variable length) then convert it to BMP. Has anyone done this before or has an Epson-format-to-BMP routine?

    Hi Simon,
    Try this and see if it works. I don't know if there are different Epson formats. This VI handles monochrome pics only.
    I had the same problem when a thermal printer died, and I decided to capture the "graphics" per PC instead of on paper. I've been using it for my purposes for years. Dunno if it'll work for you, but you can try it and see. I think my printer worked with ESC/K, but maybe it'll give you a start at least.
    Shane.
    Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
    Attachments:
    EPS_string_to_graphm_faster.llb ‏61 KB

  • VIVO Fullscreen Capture Software

    Hi all...
    After a long time trying to make my VIVO works I'm looking for a software that can play the video-in sign in fullscreen format in real time.
    I've installed the WinProducer that came with my VGA but it only plays the video-in sign on a small window.
    The idea is to see what my VCR is playing and I don't need to record it... since I use my VCR connected to the cabletv I want to see it on my cpu display in fullscreen mode.  
    Any help ?  
    Thanks a lot.

    Quote
    Originally posted by rowanf
    i got a msi fx 5600 vtdr with power vcr and the nvidia wdm capture drivers installed but i cant get any picture only sound when i plug in my vcr, i'm using a scart connector out of my vcr that has 2 rca to stereo 3.5mm into the sb audigy and an s-video cable that came with the gpu into the s-video connector on the vivo breakout box what do i need to change?
    To make things work I installed the drivers that came with my FX5600 (44.03) and after that I ran the CD again and installed the wdm.
    So I installed WinProducer, disabled the nView and set the WinProducer source to nVidia WDM with video source from composite (I use RCA of my VCR). After that I turned my computer off and on.
    When I started the WinProducer and chose the nVidia WDM as source the image was there
    After that I enabled the nView again and everything works fine, including the remote... I thought that the remote was useless but after install GIRDER I can control all my computer with it....
    After all of this I ran Windows UPDATE and updated my nVidia Drivers to one version made on 6 of october 2003.
    That's it...

  • Capturing bitmapData while in FullScreen

    Is this possible?? Limitation with the Flash player?
    I am trying to do an image capture while in full screen, however the full image area is only partially captured, or the coordinates are off (see images below). The document size is 100x700, and the stage is set not to scale / aligned to bottom.
    I've been able to capture the right size, however it always seems to capturing the image from the wrong start x,y position. There is some elements out of bounds but I am just trying to clip them depending on the current stage width and height.
    In the source files you will see a few of my attempts commented off (below/attached). Is anyone willing to help me troubleshoot this.
    Fullscreen Capture :
    Normal Capture :
    CODE :
    import com.adobe.images.JPGEncoder;
    ///---------- [ Set Variables ] --------///
    var zeroPos:Number=0-stage.stageWidth;
    var xPos:Number = (stage.stageWidth-mouseX)+zeroPos;
    var xPos2:Number = (stage.stageWidth+mouseX)+zeroPos;
    var centerpointW:Number = stage.stageWidth/2;
    var centerpointH:Number = stage.stageHeight/2;
    var stage_top:Number = stage.stageHeight-(stage.stageHeight*.95);
    var stage_bottom:Number = stage.stageHeight*.95;
    var gap_dist:Number = 1;
    var section_dist:Number = 10;
    ///---------- [ Set Stage ] --------///
    stage.quality=StageQuality.HIGH;
    stage.align=StageAlign.BOTTOM;
    StageScaleMode.NO_SCALE;
    ///---------- [ Save Wallpaper ] --------///
    function createJPG(m:MovieClip, q:Number, fileName:String){
        //test_pos.x = test_pos.y = 0;
        //test_pos.x = 500;
        //test_pos.width = stage.stageWidth;
        var jpgSource:BitmapData = new BitmapData (stage.stageWidth, stage.stageHeight,false,0xFFCC00);
        //var jpgSource:BitmapData = grab( m, new Rectangle(500-centerpointW, (700-stage.stageHeight), stage.stageWidth, stage.stageHeight), true );
        var jpgData:BitmapData = new BitmapData (stage.stageWidth, stage.stageHeight,false,0xFFCC00);
        var trans:Matrix = new Matrix();
        //var screenRectangle:Rectangle = new Rectangle((0-500), (700-stage.stageHeight), stage.stageWidth, stage.stageHeight);
        var screenRectangle:Rectangle = new Rectangle(500-centerpointW, (700-stage.stageHeight), stage.stageWidth, stage.stageHeight);
        //var screenRectangle2:Rectangle = new Rectangle(0, 0, stage.stageWidth, stage.stageHeight);
        var wp_myDate:Date = new Date();
        var wp_timeNow:Number = wp_myDate.getTime();
        //trans.translate(500-centerpointW, 700-stage.stageHeight);
        //jpgSource.draw(m);
        //jpgSource.draw(m, new Matrix(0, 0, 0, 0, 500-centerpointW, 700-stage.stageHeight));
        //jpgSource.draw(m, trans, null,null,null,true);
        //jpgSource.fillRect(screenRectangle, 0xFF0000);
        var mxx:Matrix = new Matrix();
        mxx.tx = 500-centerpointW;
        mxx.ty = 700-stage.stageHeight;
        //jpgSource.draw(m, mxx);
        jpgSource.draw(m, null, null,null,screenRectangle,true);
        //jpgSource.draw(m, new Matrix(1, 0, 0, 1, 500-centerpointW, 700-stage.stageHeight));
        jpgData.copyPixels( jpgSource, screenRectangle, new Point(0, 0) );
        //jpgData.copyPixels( jpgSource, screenRectangle2, new Point(0, 0) );
        jpgSource.dispose();
        var jpgEncoder:JPGEncoder = new JPGEncoder(q);
        var jpgStream:ByteArray = jpgEncoder.encode(jpgData);
        //var jpgStream:ByteArray = jpgEncoder.encode(jpgSource);
        var header:URLRequestHeader = new URLRequestHeader ("Content-type", "application/octet-stream");
        var jpgURLRequest:URLRequest = new URLRequest ("screenshot_download.php?name=" + fileName + wp_timeNow.toString()+".jpg");
        var jpgURLLoader:URLLoader = new URLLoader();
        jpgURLRequest.requestHeaders.push(header);               
        jpgURLRequest.method = URLRequestMethod.POST;               
        jpgURLRequest.data = jpgStream;
        navigateToURL(jpgURLRequest, "_self");
    function grab( source:DisplayObject, rect:Rectangle, smoothing:Boolean ):BitmapData{
        if( !source is IBitmapDrawable )
            throw new Error( "Cannot create BitmapData.  Source must implement IBitmapDrawable" );
        var bmpData1:BitmapData = new BitmapData( stage.stageWidth, stage.stageHeight, true, 0x00000000 );
        var bmpData2:BitmapData = new BitmapData( rect.width, rect.height, true, 0x00000000 );
        bmpData1.draw( source, null, null, null, null, smoothing );
        bmpData2.copyPixels( bmpData1, rect, new Point( 0, 0 ) );
        bmpData1.dispose();
        return bmpData2;
    function onSaveWallpaper($event:MouseEvent):void {
        //stage.displayState=StageDisplayState.NORMAL;
        createJPG(this, 90, stage.stageWidth+"x"+stage.stageHeight);
    captureTab.addEventListener(MouseEvent.CLICK, onSaveWallpaper);
    ///---------- [ Fullsreen Functions ] --------///
    function showFullScreen($event:MouseEvent):void {
        stage.displayState=StageDisplayState.FULL_SCREEN;
        stage.align=StageAlign.BOTTOM;
    fsTab.addEventListener(MouseEvent.CLICK, showFullScreen);
    Here's the code for the php ("screenshot_download.php") :
    <?php
    if ( isset ( $GLOBALS["HTTP_RAW_POST_DATA"] )) {
        // get bytearray
        $im = $GLOBALS["HTTP_RAW_POST_DATA"];
        // add headers for download dialog-box
        header('Content-Type: image/jpeg');
        header("Content-Disposition: attachment; filename=".$_GET['name']);
        echo $im;
    }  else echo 'An error occured.';
    ?>

    Thanks all. I was able to resolve this issue :
    Here it is in action (right click for fullscreen option) :
    http://todreamawake.com/beta_test.html?load_stage=main_menu
    I decided to break from this while I worked on making other updates to the site. And yesterday I took another look at it, and took me about 15mins to relize what I was doing wrong. Turns out I had it in one of my attemps but my calculations was backwords.
        var jpgSource:BitmapData = new BitmapData (stage.stageWidth, stage.stageHeight);
        var trans:Matrix = new Matrix();
        trans.translate(centerpointW-500, stage.stageHeight-700);
         //  I had this as 500-centerpointW, 700-stage.stageHeight
        jpgSource.draw(m, trans, null,null,null,true);
        var jpgEncoder:JPGEncoder = new JPGEncoder(85);
        var jpgStream:ByteArray = jpgEncoder.encode(jpgSource);
        var header:URLRequestHeader = new URLRequestHeader("Content-type", "application/octet-stream");
         var jpgURLRequest:URLRequest = new URLRequest("screenshot_download.php?name=sketch_"+fileName);
        jpgURLRequest.requestHeaders.push(header);
        jpgURLRequest.method = URLRequestMethod.POST;
        jpgURLRequest.data = jpgStream;
         navigateToURL(jpgURLRequest, "_self");
    Thanks again, I attached the updated FLA if it can help anyone else.

  • FMEL - What Screen Cap Program Can Capture in Fullscreen for Fullscreen Applications?

    I have tried 6 screen cap programs: VH, Uscreen, CamStudio, UltraVNC...etc, and none are able to capture any program that I use in fullscreen, whether it is a 3D game or a fullscreen slideshow.
    Does anyone know of a (preferably free) screen capture program that works for Windows 7 and can capture 3D fullscreen applications? If there is nothing for free, then any premium recommendations would be appreciated.
    I just could not find a program that worked, so I am just wondering if there is a tried and proven program out there.
    Thanks!

    I believe there is only one program (besides getting a capture card) that does this, it does however cost money (It's called DXtory, not sure on it's reliability as I have never used it myself.. It may also not work with everything..
    Only way of doing this guaranteed to work is through capture cards, but if you want decent resolutions with that then you gotta be prepared to shell out quite a bit of money unfortunately.
    edit: let me add, I have not used dxtory so I can not tell you how/if this would work with FME for example, but I have heard from other people that dxtory would be an alternative for fullscreen.. however that program also has the ability to record to harddrive and I am unsure if that's the only way (like fraps) or if it can output to a virtual webcam as well... I just don't know...
    edit2: ok seems like there is a trial for the program, and it also does allow you to output it into a virtual webcam (trial has a watermark) so you Can use it for FME.. You should check it out, it costs 3600 yen so that's like $45

  • Final Cut wont recognize when i push esc when capturing now.

    Final Cut wont recognize when i push esc when capturing now on an uncontrolled device.
    help.

    I have captured from a VHS player thru a camcorder to FCP, but never experienced a Capture Now not stopping after pressing the ESC key. I did a quick search and found a question similar to yours. The following suggestions are mostly from a response posted by Tony Gay:
    1. Trash the FCP preferences. Try Preference Manager for doing that if you don't already have it.
    2. Run Disk Utility and select Repair Disk Permissions
    3. Check your System Prefs, make sure that your Energy Saver settings are so that the system stays awake and disks do not power down.
    4. The FCP preferences will need to be reset. If using Capture Now, check that it is not limited, reset your drives and etc.
    5. Check that the codec of the camera/tape match the setting that you are capturing with.
    6. Try capturing a short piece using Log and Capture...
    7. Try Capture Now.
    The person with the problem posted back reporting that after doing the above, ESC was again working with Capture Now.
    Good luck.

  • FLVPlayback screws up fullscreen and resizes my swf on "Esc"

    OK, so I have been modifying the Adobe AS3 videogallery for my site. It got just about everything working but fullscreen.
    1) The HTML is set to enable fullscreen
    2) The playback component is the newest version
    3) The Flashplayer is version 10+
    So when you click on any of the videos in the menu it loads into the side panel and plays as it should. But when you click on the fullscreen button it goes into fullscreen mode, but only displays the first frame of my last video in the menu. That's all it does, really weird!
    When you press, "Esc" it exits out of fullscreen and the swf that was at 100% centered is now aligned top left at it's original size of 723px
    I have NO idea where to start here. The link to my site is below. Let me know what you think!
    http://www.xsxtreme.com/index2.html

    I mean sir, when I click on one of the imported videos the video itself covers the entire screen. What i need is when i click the button for video 1, for sample, it will load with the size i manually transform on the stage.. and when the time comes i press the FULLSCREEN button on the "SkinOverAll.swf" that when the fullscreen happens..
    Again, my settings stageDisplayState is FULL_SCREEN and scaleMode is NO_SCALE on the first frame. So, when i go and click the tab for video page it started fullscreen. The problem happens when i started clicking on one of the buttons on the video page, the screen all turns to black.. And when i hit ESC the screen turn to normal and no video is playing.. Tried playing the video, it work fine and press the FULLSCREEN BUTTON work fine too {that's because the stageDisplayState is NORMAL..
    I hope that you could really help with this one.. I have a deadline tomorrow..
    Thanks again,
    YSONG

  • "ESC" event keycode not detected in document.keydown listener while exiting fullscreen mode

    I have a code to fire on exiting full screen mode.
    Therefore, i bind it to :
    # (window.document).keyup(function(e) {
    # if(e.keyCode === 27 ) {
    # // do something //
    Now, When i am in fullscreen mode,
    1. When i press "ESC", Fullscreen mode exits but my function does not gets fired.
    2. When i press "ESC" after fullscreen mode have exited, My function gets fired.
    That means "ESC" event was not propagated to code when browser was in fullscreen mode.
    ( * This works correctly in chrome )
    3. This is bit too much too ask, but can i bind browser's exit full screen button which appears at the top ??

    If you are using HTML5, I think the way to do is to bind with the fullscreen APIs that are still in''progress''. You could try these two links to see if that helps you
    #[http://www.sitepoint.com/html5-full-screen-api/ HTML5 Full screen API]
    #[https://wiki.mozilla.org/Gecko:FullScreenAPI Mozilla support for fullscreen]
    #[http://www.sagarganatra.com/2012/05/using-html5s-fullscreen-api.html HTML5 fullscreen API]
    You could create an event listener for the document.cancelFullScreen() and then see if that helps.
    Any specific reason why you want to bind to the button and not to the event?

  • How to disable annoying "Press Esc to exit fullscreen" message?

    Hi,
    every time I watch flash videos and go fullscreen, I see this annoing message in the center of the screen that blocks what I want to see in the first place. Is there any way to disable it permanently? There was a hex fix for this for older versions, but I would like to see an option in flash or something.

    Thanks for help and I hope apple do some thing to help their  customers other then causing them frustration. Terribly disappointed by apple's treatment of their own customers, Apple  is helping android.
    Wish you all the best Apple..

Maybe you are looking for

  • Ipod not recognized in windows vista nor in itunes

    İ need help. İ have tried the 5 r's. Since neither my computer nor itunes will recognize my ipod*, İ can not complete the restore. İ have downloaded the update from vista, still to no avail. İ don't know what else to do. since one definition of insan

  • Region blocked DVD player Satellite A100-159

    i have a toshiba A100-159 and the dvd is blocked to region 1... is there any official way to unblock it? if not how can i get it to become a region free dvd player?or how can i reset the counter? thanks in advance for your answers. gerald

  • Trusted.certs question with regards to Installation and Upgrading Java

    Greetings, Thank you to all who take the time to read this especially those who can provide some answers! Question #1: I read that trusted.certs was not backwards compatible for Java. By this I mean that a "Java Runtime 6 Update 11" generated trusted

  • Two Instances of Itunes on One PC?

    All, I recently bought a new PC, and I would like to download my old backed up Itunes library to it, along with my girl-friends library (which was on a separate computer). Is this possible? 1- I have not yet downloaded Itunes to the new PC 2- I have

  • Download Safari Application?

    Okay, I'm an idiot. I was having a problem with Safari quitting when trying to upload files to the web. I thought I'd try deleting Safari all together and re-installing it. When I went to the 'downloads' page of Mac.com, all of the Safari downloads a