LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-23-2010, 12:32 PM
skitzer skitzer is offline
Registered User
 
Join Date: Oct 2006
Posts: 166
Rep Power: 7
skitzer is on a distinguished road
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.
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 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

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

Forum Jump

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




All times are GMT. The time now is 10:57 AM.