Skip navigation
groovemonger
Currently Being Moderated

How would I create a layer ABOVE a custom cursor? [CS5 Pro]

Aug 10, 2012 5:53 AM

Tags: #custom #cs5 #actionscript #layer #cursor

...so the custom cursor would disappear behind the layer when moved across it.

Currently if the layer is simply put at the top of the layer list [above the mouse cursor layer] when published the mouse cursor supersedes it and appears above all layers... not behind any

 

Many many thanks for your help in advance oh Holy Whizzkids

 
Replies
  • Currently Being Moderated
    Aug 10, 2012 6:29 AM   in reply to groovemonger

    What code do you have for the custom cursor?  If there is an addChild() involved, that could be why the cursor sits over any other layers (It removes it from its timeline home).

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 10, 2012 7:16 AM   in reply to groovemonger

    First, try removing that first line and see if it helps.

     

    Second, if it doesn't help, after that line do the same for whatever object you have in the layer you want to sit above the cursor... it'll need to be objects that you can target with code.

     

    What addChild() does is it takes the object being targeted and places at the top of the display list.  So that first line is essentially uprooting whytehand from the timeline and placing it above all other content planted in the timeline.  So either you don't use it, or you also use it to place the other content above the cursor.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 10, 2012 9:21 AM   in reply to groovemonger

    Actually, you don't often need to reference the stage when targeting things.  You could just use...

     

         ###########addChild(whytehand);

     

    and it should work just as well.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points