Solved

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

Posted on 2003-11-05
4
270 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
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 how to load their YouTube profile onto Flash Media Live Encoder.
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.

707 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