Solved

Movie Clip as a Button Activates Whole Movie, Not Just Clip Itself

Posted on 2003-11-05
4
220 Views
Last Modified: 2010-04-03
I've got the following script on a movieclip:

onClipEvent (load) {
     this.stop();
}
onClipEvent (mouseDown) {
         // on(release)
         hidetoc();  
}

It works, but ANYWHERE in the whole movie.  It's not exclusive to the shape within the movieclip.  I need the action to be executed ONLY when I click on the actual shape within the movie clip.

Thanks,
Brandon
0
Comment
Question by:brandonlee
  • 2
  • 2
4 Comments
 

Author Comment

by:brandonlee
ID: 9686789
I'm using Flash 5
0
 
LVL 27

Expert Comment

by:negatyve
ID: 9686968
onClipEvent (load) {
    this.stop();
}
onClipEvent (mouseDown) {
        // on(release)
      if(this.hitTest(_root._xmouse, _root._ymouse, true){
              hidetoc();
      }
}
0
 
LVL 27

Accepted Solution

by:
negatyve earned 100 total points
ID: 9686971
one parenthesis missing:

onClipEvent (load) {
    this.stop();
}
onClipEvent (mouseDown) {
        // on(release)
      if(this.hitTest(_root._xmouse, _root._ymouse, true)){
              hidetoc();
      }
}
0
 

Author Comment

by:brandonlee
ID: 9687551
Ah, to make sure the movie clip was actually clicked.

Thanks again!
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now