Solved

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

Posted on 2003-11-05
4
261 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

Technology Partners: 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

Suggested Solutions

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 …
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
The goal of the tutorial is to teach the user how to how to record live broadcast.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

756 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