How to remove mouse cursor (system cursor) in a video display component or in canvas component

0 views
Skip to first unread message

prasad

unread,
Oct 11, 2008, 2:15:45 AM10/11/08
to Chennai Flex User Group
Dear All,

I am using a video display component to play a flv file in a
full screen mode, At the time of playing
a movie file, I want to hide a mouse cursor (system cursor) in front
of the clip. Let me know, how to
implement. I already tried with :

hideCursor()
removeCursorAll()
It removes only a custom and busy cursors.

And, Give your solutions to get.


Best Regards

Prasad

DineshKumar.T

unread,
Oct 11, 2008, 5:46:22 AM10/11/08
to chennai-fle...@googlegroups.com
Hi Prasad,

Try this sample app..

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
    <mx:Script>
        <![CDATA[
            import mx.managers.CursorManager;
           
            private function hideCursor():void{
                Mouse.hide();
            }
            private function showCursor():void{
                Mouse.show();
            }
        ]]>
    </mx:Script>
<mx:VideoDisplay source="sample.flv" width="651" height="312" rollOver="hideCursor()" rollOut="showCursor()" x="111" y="73"/>   
</mx:Application>

Regards,
Dineshkumar.T

prasad P

unread,
Oct 11, 2008, 2:42:26 PM10/11/08
to chennai-fle...@googlegroups.com
Hi,
         Thanks, I also got the solution. same way of using a Mouse.hide() in both canvas & video display
component.

         Thanks for your effort


Rds
Prasad
Reply all
Reply to author
Forward
0 new messages