繁体中文
设为首页
加入收藏
当前位置:网站制作首页 >> Flash教程 >> mc的本地坐标和舞台坐标的另类猎取方法

mc的本地坐标和舞台坐标的另类猎取方法

2007-10-15 08:00:00  作者:  来源:互联网  浏览次数:0  文字大小:【】【】【
简介:本地坐标:(0,0)大小(100,100) screen.width-333)this.width=screen.width-333" border=0> 舞台坐标:(200,200)大小(100,100) screen.width-333)this.width=screen.width-333" border=0> 舞台坐标测...

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

screen.width-333)this.width=screen.width-333" border=0>

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

screen.width-333)this.width=screen.width-333" border=0>

舞台坐标测试:

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

责任编辑:admin
相关文章