Skip to main content
Participating Frequently
November 7, 2006
Question

how to check if a movie clip is fited to another

  • November 7, 2006
  • 1 reply
  • 289 views
i have a project that User can Drag and Drop a MovieClip to the another (DragAndDrop)
then when the User press on the MovieClip then StartDrag (onPress=function(){startDrag(this)})
(onRelease=function()
{ Check if the MovieClip is Fited to the Another}
need help;
Thanks for Suport
This topic has been closed for replies.

1 reply

Marghoob Sulemaan
Inspiring
November 7, 2006
source_mc = boxA // your movieclip name
target_mc = boxB // your movieclip name

if(source_mc._width < = target_mc._width && source_mc._height < = target_mc._height) {
// then do something
}