Solved

Problem with useHandCursor on a movieclip

Posted on 2010-08-13
3
516 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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

First things first - Preparation We need all the part for this install and it's much nicer to have them all on hand when you need them so here's what's required. Download Eclipse 3.5 32 bit (I like the Classic flavour) from here. (http://www.e…
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 live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
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.

751 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