当前位置: 首页 > 图文教程 > Flash动画 > Flash动画制作 > mc的本地坐标和舞台坐标的另类猎取方法

Flash动画制作
MM对Flash MX 2004的最新改进
FlashMX经典实例(9)
Flash 动作脚本之:了解Action Script2.0 (3)
Flash 动作脚本之:资料速查(2)
Flash 动作脚本之:资料速查(6)
Flash 动作脚本之:资料速查(7)
Flash 动作脚本之:资料速查(8)
Flash 动作脚本之:资料速查(15)
Flash 动作脚本之:资料速查(17)
Flash MX pro的历史面板(3)
Class结构教程
条件循环的使用
波动方程的应用
AS的基本代码解释(1)
Flash MX 编程深层次应用-第三方软件(6)
Flash MX Pro 2004新模板应用(2)
Flash手绘一副帅气眼镜(2)
Flash手绘一副帅气眼镜(3)
Flash手绘一副帅气眼镜(4)
Flash MX 2004 模拟出打字效果的制作方法

Flash动画制作 中的 mc的本地坐标和舞台坐标的另类猎取方法


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-22   浏览: 64 ::
收藏到网摘: n/a

本地坐标:(0,0)大小(100,100)

按此在新窗口浏览图片

舞台坐标:(200,200)大小(100,100)

按此在新窗口浏览图片

舞台坐标测试:

clipBounds = mc1.getBounds(_root);
trace(clipBounds.xMin);//200
trace(clipBounds.yMin);//200
trace(clipBounds.xMax);//300
trace(clipBounds.yMax);//300
本地坐标测试:clipBounds = mc1.getBounds(mc1);
trace(clipBounds.xMin);//0
trace(clipBounds.yMin);//0
trace(clipBounds.xMax);//100
trace(clipBounds.yMax);//100