只有八行代码的动态自适应文本框
作者:flashman1104 类型:闪吧BBS 来源:闪吧个人空间
//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背景框箭头
//
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背景框箭头
//
责任编辑:silvia 时间:2007年1月26日
- 上一篇:
- 加透明FLASH贴图特效(双层特效)
- 下一篇:
- Photoshop绘可爱的卡通铅笔小人
- 没有相关教材
- 最近更新
