嗨,我是这个董事会的新手,希望你能帮助我。
我正在尝试制作 Flash 地图游戏。现在我在 Movieclip 中有项目,并希望将此 Movieclip 放入滚动窗格组件中,但我遇到了问题,导致拖动不会超出滚动窗格。
这是我的代码
container.mc_item.buttonMode = true;
container.mc_item.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
function onDown(event:MouseEvent):void {
container.mc_item.startDrag();
}
container.mc_item.addEventListener(MouseEvent.MOUSE_UP, onUp);
function onUp(event:MouseEvent):void {
container.mc_item.stopDrag();
trace(container.mc_item.dropTarget.parent.name); // this is the command that tells us which area the mc_item was dropped on
}
container.scrollpane.source= container.mc_item;
请帮忙
我在cs4中上传了源代码。如果您可以使滚动窗格中的每个动态 _mc 可拖动,以拖动到外面的影片剪辑中,那就太好了。是否可以给滚动窗格中的每个 _mc 一个标签?
http://www.speedshare.org/download.php?id=5324318F11
谢谢