Auto hide player controlbar when video fullscreen

1. How to Auto hide player controlbar, when video fullscreen.
2. and also controlbar widh when player fullsize to monitor width.
Code
function fullscreenOnClicked(e:MouseEvent):void {
     stage.displayState = StageDisplayState.FULL_SCREEN;
function fullscreenOffClicked(e:MouseEvent):void {
     stage.displayState = StageDisplayState.NORMAL;
function onFullscreen(e:FullScreenEvent):void {
      if (e.fullScreen) {
          // switch fullscreen buttons
          mcVideoControls.btnFullscreenOn.visible = false;
          mcVideoControls.btnFullscreenOff.visible = true;
          // bottom center align controls
          mcVideoControls.x = (Capabilities.screenResolutionX - 480) / 2;
          mcVideoControls.y = (Capabilities.screenResolutionY - 36);
          // size up video display
          vidDisplay.height      = (Capabilities.screenResolutionY - 36);
          vidDisplay.width      = vidDisplay.height * 4 / 3;
          vidDisplay.x          = (Capabilities.screenResolutionX - vidDisplay.width) / 2;
    } else {
          // switch fullscreen buttons
        mcVideoControls.btnFullscreenOn.visible = true;
          mcVideoControls.btnFullscreenOff.visible = false;
          // reset controls position
          mcVideoControls.x = 0;
          mcVideoControls.y = 360;
          // reset video display
          vidDisplay.y = 0;
          vidDisplay.x = 0;
          vidDisplay.width = 480;
          vidDisplay.height = 360;

Use the below code to avoid the big size of control in fullscreen:
import flash.display.Stage;
import flash.display.StageScaleMode;
import flash.display.StageAlign;
stage.scaleMode=StageScaleMode.NO_SCALE;
stage.align=StageAlign.TOP_LEFT;
within resizehandler:
function resizeHandler(e:Event):void
  mcVideoControls.x = (stage.stageWidth-mcVideoControls.width) / 2;
  mcVideoControls.y = stage.stageHeight- mcVideoControls.height ;
This is enought nowhere you need the codes.
Hope it solved

Similar Messages

  • Flash player plays when video fully buffered

    Hello there, I'm having problems with the flash player on firefox. Every flash video that I want to watch only plays after it's fully buffered, it won't even show the buffering bar at all. On IE and Chrome it works fine.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

  • Auto/Hide with Flv playback doesn't work with javascript lightbox, need help?

    Hi everyone,
    i created some swf loading a flv file in a flv playback and
    check on the auto/hide parameter. When i test the movie it works
    very well. BUT, in my website, i put those swf files in Lightbox
    (javascript computed) and when the mouse goes Over the flash video,
    it shows the Skin player and when the mouse goes Out, the Skin
    player stays over the video!? Why? Does someone has an idea on how
    to force the auto/hide paramater in this case?
    Thanks for your help
    Orlenka

    Found this post when searching for an answer, but didn't find much elsewhere so I'll post my quick and ugly solution here. I'm sure it can be vastly improved, but I didn't have much more than 5 minutes. Note - setting .visible to false just ended up causing the autohide transition to occur over and over, so instead I'm just temporarily moving the whole sprite offscreen.
    (AS3, using CS5 component... note that 'player' is the FLVPlayback instance):
    //### force 'autohide' when mouse inactive
    var timer:Timer = new Timer(1500, 0);
    timer.addEventListener(TimerEvent.TIMER, onTimer);
    timer.start();
    var skinSprite:DisplayObject;
    var prevMouseX:Number;
    var prevMouseY:Number;
    function onTimer(e:TimerEvent):void {
      //get skinSprite if we haven't already
      if(!skinSprite) {
        var child:DisplayObject;
        for(var i:Number = 0; i < player.numChildren; i++) {
          child = player.getChildAt(i);
          if(i == 2) { //this is the skinSprite
            skinSprite = child;
      //check to see if mouse hasn't moved since last timer event
      if(skinSprite && mouseX == prevMouseX && mouseY == prevMouseY) {
        skinSprite.y = -1000;
      prevMouseX = mouseX;
      prevMouseY = mouseY;
    stage.addEventListener(MouseEvent.MOUSE_MOVE, stage_onMouseMove);
    function stage_onMouseMove(e:MouseEvent):void {
      if(skinSprite) {
        skinSprite.y = 0;

  • Dock auto-hides, despite preference setting

    An odd occurence with my MBP Retina.  Despite the "Automatically hide and show the Dock" preference being UNchecked, my dock still auto-hides, but only when I click on stacks under certain circumstances.  So, this doesn't happen when the stack is set to show as List; only when set to show as Grid or Fan.  Then, when I single-click on a Grid or Fan stack, the dock will always auto-hide after losing focus.  Does anyone else with a MBP Retina have this problem?  I'm using the latest software to date, OS X 10.8.3.

    If CT's suggestion didn't work, try resetting the dock.
    Try doing a Dock restart using the following Terminal command:
    killall Dock
    Log out/in and test. If that doesn't work.
    You need to look in your user Library/Applications Support/Dock for the .db. Hold down the option key while using the Finder “Go To Folder” command. Enter ~/ Library/Applications Support/Dock.  Move the .db to your desktop.
    If you prefer to make your user library permanently visible, use the Terminal command found below.
    http://osxdaily.com/2011/07/04/show-library-directory-in-mac-os-x-lion/
    You might want to bookmark the command. I had to use it again after I installed 10.8.4. I have also been informed that if you drag the user library to Finder it will remain visible.

  • Auto Hide the Dock

    I know this can be done by pressing 'F' and I dont want to use auto-hide all the time.
    Is there a way that you can auto hide the dock when Aperture starts up?

    Hello J:
    Try trashing the preference file (com.apple.dock.plist) and restarting. Then enter your personal dock preferences.
    Barry

  • Flash player freeze a lot when playing Youtube videos fullscreen from Linux, but plays ok from Windows (CPU: AMD APU)

    Flash player freeze a lot when playing Youtube videos fullscreen from Linux, but plays videos ok from Windows (CPU: AMD APU).
    When playing video in default size it's OK (windows and Linux), but when setting video in full screen, on Linux there's troubles: video is hashed (freeze every 3 seconds).
    CPU : AMD APU Athlon 5350.
    OS : Linux Mint 17 (64 bits).
    Browser: Firefox v31 (on Linux and Windows 7).
    Linux AMD video driver : Catalyst v14.4 (amd-catalyst-14-4-rev2-linux-x86-x86-64-may6.zip)
    Linux Flash polayer version: 11,2,202,400 (deteced from https://www.adobe.com/software/flash/about/ )

    Hi s, well congrats on getting your brother's computer up and running. On your system, you have all correct Flash Player
    files for IE and FF, as well as the SWO and SWF.
    Since the Install of Flash Player, have you installed any programs that would have added any ActiveX Controls, or any other add ons or plug-ins?
    Have you had an opportunity to see if your brother's computer has the issue you have when watching the same websites?
    Are you using any ad-block in FF(Firefox) or any pop up blocker software installed?  I can't imagine updating to FP version 10 alone would cause this.
    Is this happening only on the BBC website? Does what you watch come thru the BBC website or youtube directly?
    We have your brother's computer to use to determine what is going on. If he is able to see the BBC website and what you
    are having problems with, then we can rule out the website.
    Other browser add ons, anti-virus programs, etc. affect the browser. Even tho, no problem with vs 9. Sometimes updates
    can have an affect, even with Windows as we all know:-)
    Thanks,
    eidnolb

  • Auto hide video controls

    have not use flash in years, so I am wondering if anybody can help me with a basic questions.
    I want to make a mock-up kiosk presentation. What would be the best adobe product to use for this,
    i was thinking towards in design as what i have most experience with.
    basically all it needs to be is a start screen with 5 icons/thumbnails when one clicked
    a video/swf plays a 15sec clip in fullscreen (i need to be able auto hide the video controls, and
    for the video to play non-stop for the full 15-20 secs (not stopping or pausing if the screen is pressed)
    on the end of clip to return to start screen.
    so what would be best for this ?

    oh sorry , it will be a standard windows (doubt it will be 8 most likly 7/vista/xp) pc will be displayed on a monitor with a touch layer underneath it.
    it does not need to pull anything from the web either (video or feeds etc) all the videos and files can be stored locally on the machine or usb stick.

  • Safari always auto-hide bars, always: also in normal screen mode (not full-screen, which is when autohide happens)

    Bookmark bar is auto hidden in fullscreen mode, how to keep same functionality in normal mode out of full-screen?
    In full-screen I just have the main toolbar showing, which is how I want it all the time. This or either make "full-screen" a lot better.

    Hmm, i think i phrased original question badly, i am looking for auto-hide to be featured in normal window mode as well as fullscreen, and whatever else designers and programmers can dream up and not execute poorly.
    I have now disabled all EXTENSIONS and removed all 3rd party bars (google, sharethis, never used nayway;) and as my suspicions confirmed Safari is running much better. I was very suspicious of this when it was added as it seemed like trying to match Firefox, which I also gave up some time ago in place of Chrome as my second browser, although I use Safari for 90%. The extensions i think causes freezing when i had Parallels running a Windows VM at the same time and also other times when not.
    The extensions is a bit stupid in my opinion as any niggling, minor feature of a website should be addresses to the website rather than the browser. Where adverts are concerned, well, just use the web less or more specifically!
    I think I'm fine with Toolbar/URL-search and bookmark bar, its great - simple and not intrusive. I believe EXTENSIONS introduction gave me some sort of weird mental outlook and would urge Apple to be more careful in bringing in different types of features unnecessarily.

  • HT1338 Hi everybody..i have an enigmatic problem since i bought MacBook Air..i can't watch youtube videos and i did install the latest adobe flash player BUT when i start to install it the system keeps asking me to enter a password ? which password i need

    Hi everybody..i have an enigmatic problem since i bought MacBook Air..i can't watch youtube videos and i did install the latest adobe flash player BUT when i start to install it the system keeps asking me to enter a password ? which password i need ??????

    Your admin account password.

  • Adobe Flash Player 10 when installed closes the whole computer as soon as it is selected to 'play' a video clip from U Tube or any other source, I have uninstalled it and the problem goes away but I cannot play the clip.any answers?

    Adobe Flash Player 10, when installed, closes the whole computer when it is used to play any clip from U Tube or other source. I uninstalled it and there was no further trouble but, of course, I cannot view the clip. If I reinstall it the same problem persists. I have contacted my 'computer guru' but his comment is that many of his clients have the same problem but it appears to be a problem with Adobe however many other friends have put in the version 10 Flash Player and have no problems. I do not appear to have any other problems with the computer such as viruses etc and it is scanned very day for such items. I would appreciate any advice you can give as it is very annoying, thanks, RAB

    Me too!
    On both IE8 and Firefox. Win 7 32 bit on IBM T42 - 1GB ram.
    Old laptop I know but the 10.1.x.x Flash Players worked just fine. Problem started with 10.2.152.26 flash player.
    Now BBC TV live and iPlayer work just fine, however YouTube does not - audio but no video. Just a black rectangle where the video should be.
    Right click to get the menu and "settings" is greyed out. However select the pop-out option and the video plays. Right click on the pop-out and "settings" is available. So deselect "enable hardware acceleration", close the pop-out and refresh the window (F5) and now YouTube videos play. Switch hardware acceleration back on and now they don't.
    This video works fine with hardware acceleration enabled. http://www.adobe.com/products/flashplayer/features/video/h264/
    These also work. http://www.adobe.com/devnet/flashplayer/stagevideo.html
    Something broken in 10.2, I think.

  • ITunes 10.5.0.142 prevents 'auto-hide' task bar reappearing on scroll-over at page bottom when ITunes home page is up. Task bar appears and hides fine on other windows.  OS: Win 7.

    In Windows 7 my latest ITunes version won't let the 'autohide' feature work for my task bar.  I have mine set at the bottom of all pages, and they all work when the Itunes page is up.  But not the ITunes home page itself.  The task bar is gone, and won't appear on scroll-over. 
    Look, I'm not going to kill myself over it.  I just have to minimize the IT page to get to another task bar.
    But I like my auto-hide and won't disable it, and I like what's been done with the new version of IT and - of course - won't get rid of that.  I just want them to live together happily ever after.
    Thank You in Advance for Your Time;
    Curt

    In Windows 7 my latest ITunes version won't let the 'autohide' feature work for my task bar.  I have mine set at the bottom of all pages, and they all work when the Itunes page is up.  But not the ITunes home page itself.  The task bar is gone, and won't appear on scroll-over. 
    Look, I'm not going to kill myself over it.  I just have to minimize the IT page to get to another task bar.
    But I like my auto-hide and won't disable it, and I like what's been done with the new version of IT and - of course - won't get rid of that.  I just want them to live together happily ever after.
    Thank You in Advance for Your Time;
    Curt

  • TS4057 I did this and now my videos are not working. They show the pictures aren't there on some and on others it shows they are there, but doesn't show them in the player. When I try to Share anything it just says Waiting for Processing for hours. What d

    I did this and now my videos are not working. They show the pictures aren't there on some and on others it shows they are there, but doesn't show them in the player. When I try to Share anything it just says Waiting for Processing for hours. What do I do?
    I also got Motion and can't figure out how to use it with Final Cut Pro X. Any help woud be great. Thanks

    I have no idea what may have caused your MacBook to stop working, but from your description it kind of sounds like it may have started before you ran Software Update and installed the new Apps. Just the general slow feeling and bugginess is what tips me off. You said that you weren't sure if you had closed all open windows, that doesn't matter if the computer restarts itself. It automatically closes all other open applications when restarting.
    As to your data being retrievable, if when you take it in they do a fresh install of the OS, then no, it will not be unless you want to pay several thousand dollars to a software retrieval company.
    I am glad to hear that you have taken into the Apple Store to get it fixed, and that you have all of your purchased music backed up to your iPod. You should be able to just transfer it all back to iTunes once you get your computer back should it be necessary.
    As a side note, the proper place for this topic would probably in the MacBook forums, not iTunes since there is no evidence that iTunes started the issue.

  • Why the audio of my video in my itunes is not playing when i fullscreen it? :( HElp me please..

    why the audio of my video in my itunes is not playing when i fullscreen it? HElp me please..

    Hi eversonjm,
    Thanks for using Apple Support Communities.  If you are out of authorizations but only have 1 computer, deauthorizing all computers and reauthorizing your correct computer might be a good idea.  See this article for instructions:
    iTunes Store: About authorization and deauthorization
    http://support.apple.com/kb/ht1420
    If after deauthorizing and reauthorizing your computer, you are still not authorized for the 96 songs, this article has some steps for seeing the account name that was used to purchase a song, in the event that a different account may have been used:
    Recovering a forgotten iTunes Store account name
    http://support.apple.com/kb/ht1920
    Cheers,
    - Ari

  • After mixing a project i select bounce and burn the disc that is burned plays on any cd player but when i try to burn the wav or mp3 file that was created the resulting disc will only play in a computer this also happens with video projects help please

    after mixing a project i select bounce and burn the disc that is burned plays on any cd player but when i try to burn the wav or mp3 file that was created the resulting disc will only play in a computer this also happens with video projects help please are there any settings i need to alter as it seems the wav or mp3 file i ceated is being converted to a data file somewhere between the folder and disc drive

    Same thing for a movie file.. If you want to play back the movie via a DVD and a DVD player you must create a Movie DVD  and not just burn files to a data DVD... as Data DVDs are just storage devices for files and therefore will only work with computers...
    Movie DVDs are special formats that include things like menus and special file formats.. so they can playback via a DVD Player...
    You will need a 3rd party DVD Burning app like Toast which is what i actually use.... or the more popular DVD Creator app...to create and then burn a Movie DVD that will playback on a DVD Player....
    https://answers.yahoo.com/question/index?qid=20101220205435AA70beb

  • I HAVE DOWNLOADED FLASH PLAYER BUT WHEN I TRY TO WATCH A VIDEOS IT SAYS TO GET FLASH PLAYER,I ALREADY HAVE IT.I KEEP DOWNLOADING IT BUT IT STILL DOESNT HELP

    Question
    I HAVE DOWNLOADED FLASH PLAYER BUT WHEN I TRY TO WATCH A VIDEOS IT SAYS TO GET FLASH PLAYER,I ALREADY HAVE IT.I KEEP DOWNLOADING IT BUT IT STILL DOESNT HELP. THANKS

    Perform the suggestions mentioned in the following articles:
    * [https://support.mozilla.com/en-US/kb/Template:clearCookiesCache/ Clear Cookies & Cache]
    * [[Troubleshooting extensions and themes]]
    * Update All your Firefox Plugins -> https://www.mozilla.org/en-US/plugincheck/
    '''NOTE: When Downloading Plugins Update setup files, Remove Checkmark from Downloading other Optional Softwares with your Plugins (e.g. Toolbars, McAfee, Google Chrome, etc.)'''
    Check and tell if its working.

Maybe you are looking for

  • How to delete data from hard disk before returning Macbook Air to the store

    I need to return a recently purchased Macbook Air to the store. How do I delete all data from the hard drive before I return the notebook?

  • 100000 records resuletset giving problem ?

    Hello All, I am using oracle database, windows 2000, OC4J(Oracle Containers for j2ee) Application Server. When I query a emp table which has 100000 records and store the 100000 records in resultset and using a while loop if I iterates through the res

  • Dvdsp build message?

    "The Build Location folder contains a HVDVD_TS folder(HD DVD content).  You must remove the HVDVD_TS folder from the Build Location in order to proceed with Build/Format of a Standard DVD project." ..........any help on how i change this?

  • Problems to connect with my iPhone 5 to my wi-fi

    Hi, i have problems to connect to my wi-fi with my new iPhone 5. I didn't have the problems before, with my 3GS. What is the problem? Did i have to change something in my settings?

  • IPod software update..how?

    my iPod has currently the software version 1.1 . I wanted to update my nano, so i clicked 'update' in my ipod under devices(in itunes). i tried downloading it a lot of times but to no avail. everytime i attempt to download it, i end up with an error