
Welcome Guest
|
#1
|
|||
|
|||
|
create selection rectangle
I need to create a selection rectangle on the stage that works as such:
1. Mouse down on stage activates mouse move 2. As the mouse moves, a rectangle is drawn 3. Mouse up highlights all objects that are within the boundaries of the rectangle I have parts 1 and 2 working fine, but have been unable to think of an effective way to do part 3. All I can think of is to loop through all items on the stage and check if their positions are within the boundaries of the selection rectangle, but that seems really inefficient to me. Does anyone know a better way to do this? Thanks in advance. |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Flash Component creating rectangle at runtime | heartykalp | Flash 8 |
1 | 01-04-2008 03:46 PM |
| Mini Map Selection Box | paulcybulski | Actionscript 2.0 |
0 | 11-30-2007 04:52 PM |
| rectangle with grid/scale issues | hardcorey | Newbies |
0 | 01-23-2007 12:49 AM |
| How difficult to create Flash games like these? | Shazbot | Newbies |
2 | 04-11-2005 12:26 AM |
| Create Custom Multimedia Apps and Players with New Slick TV Studio | FlashJester Sup | 3rd Party Tools and Plugins | 0 | 04-02-2004 01:54 AM |





