Solved

Problem with useHandCursor on a movieclip

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
HTML 5 or Flash 7 489
Flex/Air App seeing online status of client from an admin user 1 394
High definition conversion videos in YouTube 12 289
video live streaming 1 125
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…
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…
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.

856 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