|
| » 首页 » 电脑_数码 » 多媒体 » flash里的flag是啥意思?最好能给个详细的解释,谢谢! |
flash里的flag是啥意思?最好能给个详细的解释,谢谢! |
|
例如这段程序里的flag是啥意思?那位高手能帮我把flag和该段程序详细的解释一下啊,谢谢!
onClipEvent (enterFrame) { if (!started) { counter = 0; // 取得复制对象的路径 path = _root.tpath[_root.p_no]; // 计算路径中的坐标数量 tp = path.length; // 设定起始位置 _x = path[0][0]; _y = path[0][1]; // 计算坐标点间的偏移距离 offsetx = path[counter+1][0]-path[counter][0]; offsety = path[counter+1][1]-path[counter][1]; shift = 0; started = true; } // 判断是否为最后一个坐标点 if (counter>=(tp-1)) { flag = 1; } if (flag == 0) { shift = shift+1; if (shift>19) { shift = 1; counter = counter+1; offsetx = path[counter+1][0]-path[counter][0]; offsety = path[counter+1][1]-path[counter][1]; } _x = path[counter][0]+offsetx*shift/20; _y = path[counter][1]+offsety*shift/20; } } |
![]() |
|
|
flag为标记 判断是否为最后一个坐标点
是的话 flag = 1; 标记 否则继续 counter++ 用acdsee8.0试试 photoshop |
| 《flash里的flag是啥意思?最好能给个详细的解释,谢谢!》答案收集时间:2006-08-24 19:19:24 |