当前位置:主页>FLASH AS 编程>AS进阶篇>文章内容
  • 只有八行代码的动态自适应文本框
  • 来源:网络 作者:flashman1104 2007-04-21 【
//as层
showtxt.autoSize = true;
showtxt.text = "Hello!";
onEnterFrame = function () {
 textbg._width = showtxt._width;
 textbg._height = showtxt._height;
 arrow_mc._y = textbg._height;
 arrow_mc._x = showtxt._width/2-arrow_mc._width/2;
};
//showtxt动态文本名
//textbg文本背景
//arrow_mc背景框箭头
//




上一篇:as曲线的绘制   下一篇:随意切割位图实验
  • 用户名:新注册) 密码: 匿名评论
  • 评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规)

Copyright © 2006-2008 flashas.net All Rights Reserved.
网站内容咨询: admin#flashas.net (#为@) 联系QQ:40777822 浙ICP备06033001号
(本网站最佳浏览解析度为1024*768, 建议使用IE 6.0或以上版本浏览器。)