0
두 이미지 사본 (blurPic_mc &이라는 이미지 파일 하나와 sharpPic_mc라는 이미지 파일)을 가지고 있는데 둘 다 함께 움직일 수 있기를 원합니다. 나는 그들이 달리고있는 다른 기능들에 대해 서로 꼭대기에 머무를 필요가있다. 그러나 지금 당장 움직이는 유일한 기능은 최고점 (sharpPic_mc)이다. 어떤 아이디어? 나는 아래에 나의 코드를 포함시켰다.Flash CS4에서 이미지/레이어 링크 - 함께 움직이게합니다.
sharpPic_mc.addEventListener(MouseEvent.MOUSE_DOWN,Click);
sharpPic_mc.addEventListener(MouseEvent.MOUSE_UP,Release);
function Click(event:MouseEvent):void{
event.currentTarget.startDrag();
blurPic_mc.startDrag();
}
function Release(event:MouseEvent):void{
event.currentTarget.stopDrag();
blurPic_mc.startDrag();
}
는'this' – Amarghosh
으악 네 나는 그것을 놓쳤다. 수정하여 수정했습니다. – Allan