Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Actionscript / July 2008



Tip: Looking for answers? Try searching our database.

detect the droped place (problem)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
chathurangamdk - 11 Jul 2008 06:44 GMT
Hi all,

I'm using flash 8 on windows XP.

Suppose we have two graphics with same size and shape. One can be dragged and
another one is not. What I'm doing is drag the first graphic and drop it on the
second graphic. If they are overlap 100%, then it's ok. But when they are
closely overlapped (nearly 80%), how can I detect it?

Can anyone help on this matter or direct me to a related tutorial or a sample.

Thank You!
Chathuranga.
kglad - 11 Jul 2008 07:15 GMT
you can use the bitmapdata class to detect the exact amount of overlap.  check gskinnner's collisiondetection class.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.