| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Super Moderator
|
Okay, today I am making my first ALL AS3 site. I guess I am going to have to get used to coming here everyday to get answers instead of trying to give them...cool feels like the old days. Well, here it goes:
I have a MC that has a rectangle for a background and a dynamic textField on top of it which I set in it's Class. In that Class I also set the buttonMode to true so I get a hand cursor when the user mouses over the button. The problem is that when I mouse over the background I get the hand cursor just fine but I lose it when I mouse over the dynamic text. Anyone ran into this yet? Thanks, Dvl |
|
|
|
|
|
#2 |
|
Site Contributor
|
Hey, dvlnblk,
Hadn't run into it yet, but now that you mention it... I just created a similar mc/button in the authoring tool. Put a dynamic textbox in it, set the buttonMode to true, and sure enough, you're right. No hand cursor on the textbox. Changed the dynamic text box to a static one instead, and that brings back the hand cursor. I know I'm no help... haha. But so far I don't see a way to get a hand cursor while keeping the textbox dynamic. |
|
|
|
|
|
|
|
|
#3 | |
|
rather be programming
Join Date: Feb 2005
Location: City of Angels
Posts: 10,000
|
what about not making the dynamic text selectable?
Quote:
__________________
I'm old enough to know better and young enough to do it anyway. -- maskedman |
|
|
|
|
|
|
#4 |
|
Super Moderator
|
haha, well at least I have company! AS3 rocks, I have a logo animation and 8 nav buttons and not one thing on the stage nor any code. If you open the FLA you would swear that it should do absolutely nothing. Also, I just got a review copy of Moock's new AS3 book and it rocks too! Man that dude is a Flash God!
|
|
|
|
|
|
#5 |
|
Super Moderator
|
|
|
|
|
|
|
#6 |
|
Super Moderator
|
|
|
|
|
|
|
#7 |
|
rather be programming
Join Date: Feb 2005
Location: City of Angels
Posts: 10,000
|
hm....your right
![]() have to wait for someone else to come along. ActionScript Code:
__________________
I'm old enough to know better and young enough to do it anyway. -- maskedman |
|
|
|
|
|
#8 |
|
Super Moderator
|
Haha oh well, thanks for the help, it is greatly appreciated. Hopefully someone has run into this and can lend a hand.
|
|
|
|
|
|
#9 |
|
Site Contributor
|
Making a TextFormat object with an "url" property, and then setting the TextFormat object to the TextField will give you a hand cursor of it's own, but then I'm kind of stuck as to what URL it should go to. I can't think of a dummy url to go to that will have no effect. Null and undefined don't go anywhere, but then the hand cursor is gone again. And it would be kind of kludge workaround anyway.
"lend a hand" -- ha ha I get it! |
|
|
|
|
|
#10 |
|
Site Contributor
|
Forget that last post. That might give you the hand cursor, but would steal away the action of the CLICK or whatever it was you wanted the button/mc to do.
You're gonna hate this solution, but it works: Make an invisible button and put it over the top of your mc. Instead of programming the mc to do something when clicked or whatever, program the invisible button instead. Now your dynamic text box can stay dynamic, and you'll get a hand cursor over the top of the whole thing. I said you'd hate it because it's mucking around in the authoring tool instead of moving on with classes and OOP, but maybe there's also a way to do it dynamically. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| calling a PDF file in Flash | AudryLucy | Projectors and CDs | 20 | 12-30-2006 02:43 PM |
| Box Color Change | Jadeivy | ActionScript 2.0 | 7 | 01-27-2006 03:27 AM |
| 2d Platform engine: "protoman project" | kecho | ActionScript 2.0 | 13 | 02-13-2005 01:11 AM |
| simple for loop >>pls help | Samantha Gram | ActionScript 1.0 (and below) | 5 | 08-04-2004 10:28 AM |
| Using if..esle to test variables | pinkaboo | ActionScript 1.0 (and below) | 2 | 06-27-2003 02:13 AM |