A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Clicking a button inside a movieclip

  1. #1
    Junior Member
    Join Date
    May 2008
    Posts
    17

    Clicking a button inside a movieclip

    I have two button's inside my movieclip which i need to be clickable and perform an action.

    I cannot achieve this by on(release) can someone, please help me.

    Maybe a hitTest?

    The code I have at the moment is attached below.

    The movieclip in question is 'Event'

    Thanks
    Attached Files Attached Files

  2. #2
    Member
    Join Date
    Nov 2009
    Location
    Philadelphia
    Posts
    40
    this is an easy one to anwser b/c i had a similar issue a while back... the movieclip "event" has an onPress action on your main timeline...

    PHP Code:
    event_mc.onPress = function()
            {
                
    getURL(this.link"_top");
            } 

    so when you click it, it will always hit this code instead of using the code you added to the buttons w/in the movieclip.
    - Nick Stanziani

    pls support: www.whowantsacookie.com

    My site: pebcak

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center