vita_de Posted August 27, 2012 Share Posted August 27, 2012 Hello! I can not understand how the HitTest in WidgetFlash. In one example, everything works fine with another problem in Unigine. I want to implement Drag & Drop onMouseUp = function() { for (var i = 0; i < 20; i++ ){ var mc:MovieClip = _root.group['cell'+i]; if ( mc.hitTest( mouse ) ) { trace(mc._name); return; } } } Link to comment
manguste Posted August 28, 2012 Share Posted August 28, 2012 hitTest function takes 2 arguments: X and Y coordinates that are specified relative to object's parent. Link to comment
vita_de Posted August 28, 2012 Author Share Posted August 28, 2012 Thank you! Understood. Link to comment
Recommended Posts