Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


RollOver and Press question

Posted on 2006-11-03
Medium Priority
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 http://www.4shared.com/file/5385673/2a2f6212/rolloverqs.html
Question by:Brian Lin
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
  • 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

by:Brian Lin
ID: 17870355

Expert Comment

ID: 17870372
Is that what the problem was?
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.


Author Comment

by:Brian Lin
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 1500 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

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…
Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
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): …
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

609 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