Go Back   kirupaForum > Flash > ActionScript 3.0

Reply
 
Thread Tools Display Modes
Old 11-28-2009, 04:24 AM   #1
Keslen
Registered User
SimpleButton.hitTestState - Why?

It may be a lack of imagination on my part, but I can't imagine any situation where I would program a Button and not want the hitTestState to be the same as the overState. Why are these separate categories?
Keslen is offline   Reply With Quote

Sponsored Links (Guests Only) - Register | Need Help?
 

Old 11-28-2009, 05:17 AM   #2
glosrfc
Registered User
 
glosrfc's Avatar
Location Halley Research Station, Latitude 75°35' S, Longitude 26°39' W, Brunt Ice Shelf, Coats Land, Antarctica

Posts 4,154
With a little imagination, it's quite easy to see why:

You might have a textfield on your button but you don't want that to trigger it.

Or you might want to change the appearance of other symbols on the stage.

Or you might want to use the "invisible" button technique to capture a mouse press anywhere on the stage.

Maybe you only want your button to trigger when the mouse is over a smaller part of the button...or the opposite, where the button is triggered while the mouse appears to be still some distance from it.

Or you have an interactive map with buttons positioned tightly alongside each other, or which slightly overlap. To prevent two buttons from being triggered simultaneously, you might scale down the hit areas of each button slightly.

__________________
©2006 GlosRFC - Searching 8,168,684,336 brain cells
glosrfc is offline   Reply With Quote
Reply

Tags
comparison, hitteststate, overstate, simplebutton


Currently Active Users Viewing This Thread: 2 (0 members and 2 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:21 AM.

SUPPORTERS:

kirupa.com's fast and reliable hosting provided by Media Temple. flash components
Creative web apps. Make your own free flash banners and photo slideshows.
Check out the great, high-quality flash extensions. Buy or sell stock flash, video, audio and fonts for as little as 50 cents at FlashDen.

Flash Transition Effects

Flash Effect Tutorials

Digicrafts Components
Flash effects. Art without coding. Upload, publish, deliver. Secure hosting for your professional or academic video, presentations & more. Screencast.com
Streamsolutions Content Delivery Networks Flipping Book - page flip flash component.
Flash-Gallery.com - Get your flash photo gallery (flash component or swf gallery Learn how to advertise on kirupa.com
 

cdn
content delivery network (cdn)

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd. Copyright 2010 - kirupa.com Copyright 2010 - kirupa.com