dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [F8] Button inside MC not working :S

  1. #1
    Senior Member
    Join Date
    Oct 2008
    Posts
    227

    [F8] Button inside MC not working :S

    I have a weird problem... I have a button inside a movieclip and actionscript on root frame. I know whats the problem, just cant understand how to solve it.
    I have this script for the movieclip:
    Code:
    setColor.onRollOver = function(){
    setColor.gotoAndStop(2);
    }
    setColor.onRollOut = function(){
    setColor.gotoAndStop(1);
    }
    When i use this script on the mc, the button inside doesnt work. However if i remove it, it works fine... Any suggestionS?

  2. #2
    Senior Member
    Join Date
    Apr 2002
    Posts
    2,849
    In versions of Actionscript before Actionscript 3, you can't have button-like actions (rollOver, rollOut, release, etc) on a movie clip and have a button inside it work. One thing you could try instead is to use hitTest, which would give you a way of checking whether the mouse is over the clip without using rollOver or rollOut.

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