2012-06-03 107 views
0

在Flash 8中,我创建了一个影片剪辑。里面我添加了3个符号(动画片段)。 1个盒子和两个图像,目标是将该图像拖放到盒子中。我该怎么做?Flash 8 ActionScript - 影片剪辑位置

on(press) { 
startDrag("_root.FirstMC.RObject"); 
} 

on(release) { 
stopDrag(); 
if (_root.FirstMC.RObject._droptarget == "/Box") { 
    gotoAndStop(3); 
    } 
} 

我在做什么错?我可以拖放,但不能识别放置位置(不会转到第3帧)。任何帮助?

回答

1

使用hitTest,例如,

onClipEvent (enterFrame){ 
    if (yourMC.hitTest(yourImage)) 
    { 
     what is supposed to happen here... 

    } 

} 

希望这会有所帮助。

相关问题