首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Flash >

flash影片剪辑拖动有关问题

2012-02-04 
flash影片剪辑拖动问题我知道,先建一个影片剪辑在写on (press) {startDrag(this)}on (release) {stopDrag

flash影片剪辑拖动问题
我知道,先建一个影片剪辑在写 
on (press) { 
startDrag(this); 

on (release) { 
stopDrag(); 

或者在时间轴上写 
mc.onPress = function() { 
startDrag(this); 
this.swapDepths(depth); 
}; 
mc.onRelease = function() { 
stopDrag(); 
}; 
都可以拖动,但是在影片剪辑上的按钮不能用了 
请问怎样才能可以拖动影片剪辑和影片剪辑上的按钮又可以用 
这样的办法有没有

[解决办法]
不要在主场景的MC上写,进入MC后,在MC里的按钮上写
on (press) {
startDrag(this);
}
on (release) {
stopDrag();
}
这样MC放到主场景之后,就可以拖拽了,同时保持按钮效果
[解决办法]
onClipEvent(mouseDown)
{
startDrag(this);
}

热点排行