内容 |
很多人不知道flash8如何动态设置文本宽度?今日为你们带来的文章是flash8动态设置文本宽度的方法,还有不清楚小伙伴和小编一起去学习一下吧。 第一步:打开软件,新建一个Flash文档,高版本Flash软件新建Actionscript2.0文档。  第二步:在工具栏找到文本工具,并在舞台上放置一个文本。  第三步:设置这个文本为动态文本,并设置实例名为txt。  第四步:新建一个图层,用于编写代码。  第五步:选择新建图层的第1帧,右键选择动作打开动作面板,并输入如图所示代码。  第六步:这时预览后的效果,如图,因为动态文本长度有限,文字不能全部显示。  第七步:现在增加一行代码如图。  第八步:再次预览就可以看到文本框自动变长了,文字可以全部显示。  |