How to use AS3 to hide a bar reading of the skin?

I would use a skin of overlay on a flash with an imported video project. Video occupies the entire window, so the skinAutoHide attribute doesn't work, because the mouse leaves the window until the skinAutoHide feature comes into play. I found this code snippet which hides the bar reading as soon as surveys of the window mouse:

vpl.skinAutoHide = false;

stage.addEventListener (Event.MOUSE_LEAVE, hideSkin);

stage.addEventListener (MouseEvent.MOUSE_MOVE, showSkin);

function showSkin(evt:Event=null):void {}

vpl.skinBackgroundAlpha =. 01;

VPL. Skin = "SkinOverPlaySeekMute.swf";

}

function hideSkin(evt:Event=null):void {}

vpl.skinBackgroundAlpha = 0;

VPL. Skin = "";

}

VPL is of course is replaced by your instance name.

This solution works fine until I click on the icon to maximize the window . Now the play bar is stuck in the visible state because the mouse is more left the window. I read about the solutions that involve placing a buffer around the video and enabling skinAutoHide pixel, but it does not work if the user moves the mouse quickly out of the window.

The same poster of the above posted code a second part, which was supposed to hide the skin after several seconds of inactivity of the mouse.

vpl.skinAutoHide = false;

var LastMouseMove = getTimer ();

var MouseStill = false;

stage.addEventListener (MouseEvent.MOUSE_MOVE, function(ev:MouseEvent) {LastMouseMove = getTimer () ;});)

var MainCheckLoop = setInterval (function () {}

If ((getTimer () - LastMouseMove) > 1000) {}

{if(MouseStill==false)}

hideSkin();

MouseStill = true;

}

} else {}

{if(MouseStill==true)}

showSkin();

MouseStill = false;

}

}

(}, 1000);

stage.addEventListener (Event.MOUSE_LEAVE, hideSkin);

stage.addEventListener (MouseEvent.MOUSE_MOVE, showSkin);

function showSkin(evt:Event=null):void {}

vpl.skinBackgroundAlpha =. 01;

VPL. Skin = "SkinOverPlaySeekMute.swf";

}

function hideSkin(evt:Event=null):void {}

vpl.skinBackgroundAlpha = 0;

VPL. Skin = "";

}

I don't get any errors from the compiler, but my screen is empty (and I did remeember to change the name of vpl.skin in my name of skin and name my vplinstance).

However, I get an error of output: Error #2044: skinError unhandled:. Text = Error #1009: cannot access a property or a method of a null object reference.

If I can get this working, I think it would be the best solution.

Can anyone help?

Thank you!

Peter

You should have a single listener what a listener function.  within this function, you must test to see whether or not you want to make visible skin:

stage.addEventListener (Event.RESIZE, resizeF);

function resizeF(e:Event):void {}

{if(stage.displayState=="fullscreen")}

VPL. Skin =' ';

} else {}

VPL. Skin = "SkinOverPlaySeekMute.swf";

}

}

Tags: Adobe Animate

Similar Questions

  • How to use navigateTourl to menus submenus bars? Help, please

    pllzz somebody tell me how to use navigateTourl to submenus! Please

    Hello

    Well, let's go!

    In this code, you have your menu bar

    I add on the menu bar, a function for the itemClick event and in my dataProvider, I put the menuBarCollection.

    private var menubarXML:XMLList =

    <>

    http://www.Adobe.com/"/ >

    http://labs.Adobe.com/"/ >

    ;

    And I turn this menubarXML to an XMLListCollection on a function

    private void initMenuBar(): void {}

    this.menuBarCollection = new XMLListCollection (menubarXML);

    }

    Well well... in my event itemClick on menu bar:

    private void menuHandler(event:MenuEvent):void {}

    If (event.item.@data! = 'top') {}

    var objURLReq:URLRequest = new URLRequest ([email protected] ());

    navigateToURL (objURLReq, "_blank");

    }

    }

    Well, that's it. You have a menu with navigateToURL itemClick on menu bar.

    Concerning

  • How to use a parameter query to select and display the data in the table of the façade

    Hiiiiii

    I am using Access 2007 database
    I want to select the specific data in the database using control of the chain as 'select product, size, weight of ProductInfo where barcode (chain control) =?'  and also display the same table of façade.

    I use the connected database toolkit.
    I saw the example of the parameterized insert, but it did not help to use parameterized select query, as well as to display data of parameterized select query.

    I looked for example on parameterized select query, but I don't have any.
    So pls guide me how to do this. I would like to know the other method (if any) that the use of parameter query to perform the same thing.
    If possble pls share a vi reference.
    Thank you!!!

    HII szewczak
    Thanks for the reply
    but I did not getsolution in one of your shared links
    My problem is solved. There is no need to use the parameter query to select control values
    In my case I want to display data from database where bar code is even entered by the user
    I use the data function DB TOOL CHOOSE and create the condition of chain based on concatenation of strings

  • How to use data recovery in memory of "D"? The computer did not contain a wrioter of C/D, so I couldn't make a recovery disk.

    How to use data recovery in memory of 'd' (about 10 GB)?

    See if a manual provided with the computer or go to the manufacturer's website, email or you can call for information on how to make a recovery.

    Normally, you have to press F10 or F11 at startup to start the recovery process...

    Another way I've seen on some models is press F8 and go to a list of startup options, and launch a recovery of standards of plant with it, by selecting the repair option.

    Ask your manufacturer of computers for the EXACT method to restore to factory settings.

    This isn't their recovery process, Microsoft.

    See you soon. Mick Murphy - Microsoft partner

  • How to use develop/Tone/Auto on several pictures at the same time?   v.1.4

    How can I use develop/Tone/Auto on several pictures at the same time?

    Highlighting multiple photos and clicking on it did not work for me, if I can get it to work on a single photo at a time.

    Method 1:

    1. Go to the develop module
    2. Select the photos in the camera roll.
    3. Hold down the Ctrl key and click on the Sync button. He turns to auto sync.
    4. Now, whatever you do develop apply to all photos.
    5. Click on auto sync once more to turn off autosynching.

    Method 2:

    1. The display of the grid of Goto.
    2. Select the photos.
    3. Press Ctrl + U.
  • How to use SQL or another way to check if the assets have been post GL?

    Hi all:
    I wan to ask, how to use SQL statements or any other way to check iif assets have been post GL?


    my environment is oracle 11.5.9






    Concerning
    Terry

    to create entries and transfer to GL
    assets: -.
    (1) (log N entries)-> standard
    (2) complete the setting and submit.

    to check if the assets have been post GL
    Journal:--
    (1) magazines-> Enter
    (2) in the form of research journals Source LOV, select 'Assets', then enter
    (3) you will find all transferred assets (Addition or depreciation) magazines, and the status of the batch is (Unposted), then review and Post

    Published by:! ALotfy September 2, 2010 08:54

  • How can I show or hide a picture based on the size of the screen in CS6?

    I have a website created using Dreamweaver CS6. I used the checkerboard to fluid to hold different views for each of the 3 types - phone, Tablet, desktop computer. It works well, resizes properly. I would like to be able to show a picture in the desktop version but not the mobile version. How I do that? I can see in the .css file that the screens of different size can have their own different settings. Y at - it code I could add that could hide/show and image based on the users on the same page window? Let's say I have a div that is named photo. How could I add a parameter to the div photo in the stylesheet that would hide the image if it were mobile?

    Thank you

    Marilyn

    Thanks, I was able to change my code using your example and it works exactly as I wanted!

  • How to use Microsoft wireless receiver 700 v2.0 on the Mac book?

    Hello

    I have been using the Microsoft Wireless 700 receiver v2.0 on my laptop of Lenovo X 68 and docking station with WinXP for several years. I am in the process of upgrading to a Macbook Pro and would like to know how I can get this wireless keyboard/mouse to work on the Macbook.

    Thank you

    Kitenge

    Hello

    Make sure you have the right software for devices

    http://www.Microsoft.com/hardware/en-us/downloads

    If you are having problems using this troubleshooting

    http://support.Microsoft.com/kb/838398/en-us

  • How to use [evdo] Dial up and WAN (LAN) at the same time?

    I have an EVDO USB Modem that connects as a dial-up connection,

    also have a connection(LAN/WAN) always on broadband.

    Whenever I connect my EVDO USB Modem (dial-up)

    LAN goes dead until the break of the dial.

    I want to use both at the same time, how can I use the modem for some applications specific torrent client, download accelerator or any other application without disconnecting from the local network?

    I want my LAN always on where I can use my dial up as additional connection for some applications. Give me a tweak or tool for this.

    Please help me it is very important to me...

    and I had read a previous post but it not me helped

    My win xp sp3 operating system

    Hey Er. Rohanmangal,

    It is not possible to have two fittings together. You can use a connection at a time.

  • How to use my D-Link router to wash away the connection to my external wireless card... Help!

    Here, I'm desperate. OK, here's my situation.

    I am running Windows XP.

    I live as a result of basement of a House and my PC connects fine to the internet wireless on the floor, BUT my XBOX and PS3 do not have a strong enough to reach range. Sometimes it does, but 90% of the time it doesn't.

    My PC connects to the router on the floor using a D-Link Wireless USB card, I got. Nothing complicated but it works.

    Now, is it possible that I can use this connection and share it so that I can plug my XBOX and PS3 into my own own router D-Link so they can infiltrate the connection my PC is using the floor?

    Help, please. I'm running out of ideas and I don't know how to understand this.

    Hello

    The 524 is rather an old device.

    It is a cheap wireless router (better than the 524) that can be flashed and do it.

    http://www.Newegg.com/product/product.aspx?item=N82E16833320026&cm_re=asus_wireless_router-_-33-320-026-_-product

    ----------

    WARNING - I have no connection with brands that manufactures network devices (or other hardware) of any kind, or no connection with the computer hardware vendors. My comments are like a repository based on material I buy with my money.
    It is provided as is without any warranty and not an entitlement.

    Jack-MVP Windows Networking. WWW.EZLAN.NET

  • How to use windows 2008 R2 as a bone to the horizon 5.3 office


    Hello

    I'm currently testing the use of windows 2008 R2 SP1 as a desktop OS. But I don't have a lot of information how I can use it.

    Can I create a pool of win 2 k 8 machines or otherwise how can I use it.

    I sent this article to configure the server, but no idea how I can use it in the display manager.

    http://KB.VMware.com/selfservice/microsites/search.do?language=en_US & cmd = displayKC & externalId = 2057605

    Can someone help me with this please?

    Concerning

    Sindhu

    Yes you can, once installed and configured, create you a pool as usual.

    You can reference this guide in how to do it:

    http://www.VMware.com/files/PDF/view/VMware-view-evaluators-Guide.PDF

  • How to use different colors or shape BOF markers inside the map?

    I'm building a CRG app to view the GPS location based using google maps and oracle. I want to use markers with different colors to show several locations with the card. But I'm not able to change the color or shape for the available marker. Can anyone provide another option (such as custom marker) to achieve the same?

    However, you can use different images as follows:

    Note the use of 2 labels different pointLocation/marker in pointDataLayer.

  • [After Effects] How to use "Convert Vertex Tool" for several vertex at the same time?

    Hey guys,.

    I used the "Convert Vertex Tool" to create a curve on a step of stairs and by mistake it curve all the point of my staircase which is what I wanted to do but point by point. I didn't know it was possible to point (s) at the same time.

    And now I keep it again. I want to convert all the points as a curve at the same time.

    If someone has the magic shortcut, please let me know.

    See you soon.

    uncurved.JPGall-curved.JPG

    It's all using the right tools.

    1. Select the layer with the path
    2. Select the tool pen (g)
    3. Press and hold Ctrl/Cmnd and place the cursor on any part of the path to select - you will see a solid filled small arrow
    4. Release the Ctrl/Cmnd key and move the path tool, so you can drag a selection around the verticies
    5. Hold Down the Ctrl/Cmnd key to reveal an arrow small white selection
    6. Drag your selected verticies
    7. Release the Ctrl/Cmnd key and press the Alt/Option key to reveal the convert vertex tool
    8. Click on any vertex to change linear to Bezier or vice versa

    This allows you to convert all the selected vertices. You can't click and drag, but you can convert it to a symmetrical set of Bezier curves.

  • How can using XP Pro, I view pictures saved in the UDF on a CD?

    Is there a simple download that I can get to open files UDF on a CD?

    No guarantee... but it may be worth a try to install a UDF reader:

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Free... Volume UDF - 7.1.0.95 player
    http://www.Roxio.com/enu/support/UDF/software_updates.html
    (Filename: updateudfreader_7.exe)

    Good luck...

  • How to use invites OBIEE answers as well as in the dash prompt?

    Hi Experts,

    I have a question about the guests in OBIEE. In one of my report, I have created a quick analysis and dashboard part and placed in the dashboard. In the analysis, I applied a filter for which the given condition is invited. And in section dashboard_prompt for the same column, I gave the condition - equals. The report is the recovery right answer for this condition.

    But my query is, can I give a default value for the filter in the criteria section. Inviting the dashboard to confirm if select different value other than the default and run the report. It displays only the report that has been filtered for the default value or it will take the new value and run for him.

    I thank in advance
    Stephanie

    Hello

    Yes, it replaces the values of analysis based on prompt values dashboard filter.

    Ex: in your analysis filter you have defined as "India" column count and your fast selected value of dashboard is "Singapore" then the o/p will be replaced by the value of guest dashboard.

    example of O/P:
    Country amount
    Singapore, 10000

    Thank you
    Deva

Maybe you are looking for

  • Stream HP 13: windows upgrade 10 of 13 flow Hp

    The message on the report for my computer in the windows 10 box get is "this pc is compatible," but there is a condition "You will not be able to restore your computer to factory settings after upgrade" My question is that I was able to restore my co

  • Style bug LabVIEW XY graph point

    I have a XY Chart two signals or more I have selected a circular point to the data of the first signal poins. When I try and select you even point during the second second, it appears in the diamond with an open space in the middle. Bug? LV 2011

  • coubu. SCR

    I was getting a popup saying: "Windows cannot find the file, coubu.scr.  Click ok or browse to locate the file yourself. "She would not cancel anything and kept popping up.  When I went into the Task Manager to end the process, it stopped for a while

  • Force10 problem and Dell Openmanage Network Manager snmp

    Hello I have install snmp on Force10: traps, string community, I have also setup set up on omnm, but for some reason, I could not authenticate with F10, please find config below as well as key details: Dell10G-1 #show running-config Current configura

  • Thunderbolt multi display problem

    I use boot camp on a Mac Pro laptop, Windows 7 will not let me use two screens, so when I jump out of Mac OS I lose the use of one of the screens 27'! The laptop screen is a version of retina... maybe the confusion. I've been using Parallels and it w