SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Guru downtroden's Avatar
    Join Date
    Dec 2004
    Location
    illinois
    Posts
    978
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    can't seem to reference movieclip

    so i've got a movieclip, and a button inside it. But i can't seem to get the right 'path' to reference the movie clip from the button.

    I've tried 'this._parent', 'this' and neither work.

    Do i need to convert my button into a movieclip to do this? if so, how do you get the cursor interactivity that you do with a button? (hand icon onHover).

    EDIT: found my own solution. thanks.
    Last edited by downtroden; Oct 16, 2008 at 13:55.
    your brain reacts in the same way whether you are
    looking at something or thinking about it...

  2. #2
    SitePoint Wizard jim_morrison3's Avatar
    Join Date
    Apr 2004
    Location
    UK
    Posts
    2,324
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do i need to convert my button into a movieclip to do this?
    Yes coz when you call this in a button then it points to _level0 (root) instead of the button.

    In order to get the hand cursor, simply give a rollOver and rollOut event to the movieclip.
    Good Luck!
    There are things known and Things unknown
    And in between are the Doors.
    I love hand Coding.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •