Air 1.0 doesn’t support Mouse.hide()

I’m currently developing a touch screen application in Flash AS3 and thought I would deploy it as an AIR application. However I found out that the Mouse.hide function doesn’t work in AIR 1.0, even though the documentation sys otherwise:
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/ui/Mouse.html#hide()

this isn’t that much of an issue as you can just publish a flash file as an EXE but it does mean that I have to have all the linked assets with the EXE, whereas if it was an Air app all files would be included so less could go wrong when it gets sent to the client.

I was trying this in my full screen application with custom chrome, but also tried it in a brand new AIR file and the mouse cursor is still visible.

If any one has got this to work and I’m just being stupid pleas let me know or if you have the same problem let me know I’m not alone.

Update: Mouse hide Solution found

This entry was posted on Monday, September 1st, 2008 at 4:22 pm and is filed under Air, bug, Development, Flash, Rant. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

2 Comments so far

  1. This is annoying, but if you set a timer delay of a few hundred milliseconds, then call Mouse.hide() that should work.

  2. Thanks Tim,

    That timer solution works and I have uploaded some source code here:
    http://samhassan.co.uk/blog/2008/10/08/air-10-mousehide-work-around/

Have your say

Fields in bold are required. Email addresses are never published or distributed.

Some HTML code is allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>
URIs must be fully qualified (eg: http://www.domainname.com) and all tags must be properly closed.

Line breaks and paragraphs are automatically converted.

Please keep comments relevant. Off-topic, offensive or inappropriate comments may be edited or removed.