随鼠标运动的小球

      FLASH笔记 2005-5-16 19:48
昨天看到一篇教程 偶试了下 怎么不得成呢?
on (press) {
this.startDrag(true);
}

这个倒是成了,其他的却没有。。。
来灌水的 有知道的 顺便给偶解答下列 谢拉~~ 上面的什么意思啊。。不理解

on (press) {
startDrag("_root.ball", true,100,400,300,100);
}
on (release) {
stopDrag();
}



拖动命令的格式可以写成
startDrag(target,[lock ,left , top , right, bottom])
或target.startDrag([lock ,left , top , right, bottom])
其中参数
target 是指拖动的影片剪辑的目标路径。
lock 是一个逻辑值,指定可拖动影片剪辑是锁定到鼠标位置中央 (true),还是锁定到用户首次单击该影片剪辑的位置上 (false)。此参数是可选的。
left、top、right、bottom 相对于影片剪辑父级坐标的值,这些值指定该影片剪辑的约束矩形。这些参数也是可选的。




不是很明白。。晕

标签集:TAGS:
回复Comments() 点击Count()

回复Comments

{commentauthor}
{commentauthor}
{commenttime}
{commentnum}
{commentcontent}
作者:
{commentrecontent}