こんにちは私はこのボードの新しいですあなたが私を助けることができることを願っています。
フラッシュマップゲームを作成しようとしています。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
ありがとう