Solved

Problem with useHandCursor on a movieclip

Posted on 2010-08-13
3
517 Views
Last Modified: 2012-05-10
I am trying to make an animated button I could use in Flex using Flash CS4. I have also attached the sample .FLA file I am referring to here.

I have a movieclip named "button". If you look in the actionscript on the very first layer of the main timeline, I have:

button.useHandCursor = true;
button.buttonMode = true;

This changes the cursor to a hand cursor when you hover your mouse over the movieclip. The problem is that this movieclip also has a text field. When you hover your mouse within the perimeter of this text field, the cursor changes into the I-cursor instead of the handcursor.

If you run the attached .fla file, you will see what I mean. My goal is to have the cursor change into the handcursor anywhere within the perimeter of the "button" movieclip.

Can anyone show me how to do this?

Thanks.

 AnimatedFlashButton.fla
0
Comment
Question by:elepil
[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
3 Comments
 
LVL 18

Assisted Solution

by:Antonio Estrada
Antonio Estrada earned 50 total points
ID: 33434404
Your textfield must have the selectable property set to true (it's the default), look in your library, locate the textfield and in the properties panel, click on the "A" button, that's the one that sets it selectable or not.

If you'd like more precise instructions I can provide that.

Good Luck!

-V
0
 
LVL 39

Accepted Solution

by:
blue-genie earned 450 total points
ID: 33435528
all you need to do is to add the following line of code

button.mouseChildren = false;


the default value is true which means when you mouse over each item inside the object triggers the events too.
0
 

Author Closing Comment

by:elepil
ID: 33436531
Thank you both for responding.

Blue-genie, your answer was right on the mark. Thank you.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

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…
Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

623 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