stage.focus

鼠标拖动影片剪辑并拖动后,该影片剪辑外边框显示黄色
1
2
3
4
5
6
7
8
9
mc.addEventListener("mouseDown",godrag);
mc.addEventListener("mouseUp",stopdrag);
function stopdrag(me:MouseEvent) {
    me.target.stopDrag();
    stage.focus =mc; 
}
function godrag(me:MouseEvent) {
    me.target.startDrag();
}




原文地址:https://www.cnblogs.com/babyhhcsy/p/2842956.html