_root.mc.onEnterFrame = function() { if(mc.hitTest(_root._xmouse, _root._ymouse, true) { ///А тут напиши нужный те скрипт }