这是我第一次真正的方案拟订努力,这是我从成功中几乎没有项目回头来的最后一件事。
我以这一守则为目标,是增加一系列电影剪辑的听众,这些剪辑将拖拉,并放下。
该守则是:
var itemBank:Array = new Array(d1_anim.drawer1.test01.movieClip_1, d1_anim.drawer1.test01.movieClip_2);
for(var i:int = 0; i < itemBank.length; i++) {
itemBank[i].buttonMode = true;
itemBank[i].addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
itemBank[i].addEventListener(MouseEvent.MOUSE_UP, dropOff);
trace("pickUp added to " + itemBank[i]);
}
function pickUp(event:MouseEvent):void
{
event.target.startDrag(true);
trace("Draging " + event.target);
}
如今,文化、青年和体育部并不拖延,而微小声明则指出:
页: 1 添加到[影印片]
EDIT: Here is my fla, I give up. I don t know why it wont work. Please help. [Download it here](Edit: removed download link)