The
Selects the first frame on layer 1 in the timeline. Select Window > action to open the Actions panel (if it is not already open).
Add the following code in the Actions panel:
code is as follows |
copy code |
This.createemptymovieclip (" BOX_MC "); With (BOX_MC) { beginfill (0xff0000); moveTo; LineTo (200, 100); LineTo (200, 200); lineTo (100, 200); lineTo (100, 100); Endfill (); } This.createtextfield ("Status_txt", 999, 0, 0, MB); var mouselistener:object = new Object (); Mouselistener.onmousemove = function (): Void { status_txt.text = _level0.hittest (_xmouse, _ Ymouse, True); } Mouse.addlistener (MouseListener); |
Select Control > Test movie, and then slide the pointer over the movie clip to test the conflict.
The value true is displayed each time the pointer rests on an opaque pixel.
Solutions to the problem of conflict resolution, there is a need to understand friends can enter the reference.