# CursorManager doesn't exist in Flex 3?

**URL:** <https://forum.kirupa.com/t/cursormanager-doesnt-exist-in-flex-3/260574>\
**Category:** flash\
**Created:** [May 16, 2008, 9:49pm UTC](https://forum.kirupa.com/t/cursormanager-doesnt-exist-in-flex-3/260574 "2008-05-16T21:49:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![neville](https://avatars.discourse-cdn.com/v4/letter/n/858c86/32.png) [@neville](https://forum.kirupa.com/u/neville)\
**Post date:** [May 16, 2008, 9:49pm UTC](https://forum.kirupa.com/t/cursormanager-doesnt-exist-in-flex-3/260574/1 "2008-05-16T21:49:21Z")

</div>

I’m trying to use a custom .gif as a cursor, but for some reason Flex 3 is showing that mx.managers.CursorManager no longer exists.

The code I was trying to use (from [http://www.adobe.com/devnet/flex/quickstart/controlling\_the\_cursor/src/CursorCustom/index.html):](http://www.adobe.com/devnet/flex/quickstart/controlling_the_cursor/src/CursorCustom/index.html%29:)

```auto

            import mx.controls.Button;
            import mx.managers.CursorManager;
            import flash.events.*;

            // Embed the SWF that will be used as 
            // the custom cursor.        
            [Embed(source="assets/hourglass.swf")]
            public var HourGlassAnimation:Class;

            private const ON_MESSAGE:String = "Custom Cursor ON";
            private const OFF_MESSAGE:String = "Custom Cursor OFF";

            private function busyCursorButtonHandler(event:MouseEvent):void 
            {
                var toggleButton:Button = event.target as Button;
                if ( toggleButton.selected ) 
                {
                    // The setCursor() method returns a numeric ID for
                    // the cursor being set. You can store and use this 
                    // ID later in a removeCursor() call, or, you can
                    // use the static currentCursorID property of the 
                    // CursorManager class to achieve the same result,
                    // as we have done in this example.
                    CursorManager.setCursor(HourGlassAnimation);
                    toggleButton.label = ON_MESSAGE;                
                }
                else
                {
                    CursorManager.removeCursor( CursorManager.currentCursorID );
                    toggleButton.label = OFF_MESSAGE;                
                }
            }

```

Any ideas?

I should mention I am trying to do -everything- in .AS files, so the tutorials which talk about embedding actionscript in a .fla to just do things like  
“\*\*\*startDrag (”\_root.cursor", true);  
Mouse.hide();"

\*\*\*are not exactly what I’m looking for.
