Solved

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

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

I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…

736 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