RollOver and Press question

Posted on 2006-11-03
Last Modified: 2010-04-03
Hi, Experts

I have a code that onPress is not working. I use RollOver once and it disable the button to function. I wonder if are there any way to make onPress work. Thanks

Please download the fla file at
Question by:mingchih
  • 3
  • 2

Expert Comment

ID: 17870340
What are you assigning the onPress event to?

Cause I tried it out, and it works fine for me.

I did notice, however, that you set the onPress event for work_list.jew on every enterFrame event. I'd move this out of that event, cause it's getting replaced every 12th of a second.


Author Comment

ID: 17870355

Expert Comment

ID: 17870372
Is that what the problem was?
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.


Author Comment

ID: 17870376
mm, i moved the onPress to out side the onEnterFrame, but there is no trace shows up
LVL 16

Expert Comment

ID: 17872989
here is an example:

Download this and see how i have done it....


Accepted Solution

muxxter earned 500 total points
ID: 17881939
Ok, under further inspection, here's what's going on:

You're assigning a "onRollOver" event to the parent movie clip, "work_list". As soon as you do something like that, all the components within the movieClip never recieve any other events, they are ALL sent to the parent.

As soon as I commented out the "this.onRollOver" and "this.onRollOut" event functions, everything worked as it should.

If you'd really like the functionality of rolling over the entire movie clip, add a new layer (underneath any buttons you're using), and place an invisible (_alpha = 0) movieClip that covers all the area you want to rollOver/Out. You'll also have to add onRollOver/Out events to any buttons on top of it, cause it will count as a RollOut event (for the main movieClip) when your mouse goes over a button.


Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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 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…
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

828 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