Actionscript 3 as3的Craeating文字艺术风格
目前,我的客户要求我显示word art的曲线字体,并用这种字体自定义一些文本字段。我们可以直接将word art加载到Fash Textfield中吗?我们可以通过嵌入或任何技术(纯粹通过脚本)来实现吗 不,AS3中没有这样的东西。一个很好的方法是创建一个文本字段,并使用代码切换其中的图片Actionscript 3 as3的Craeating文字艺术风格,actionscript-3,actionscript,Actionscript 3,Actionscript,目前,我的客户要求我显示word art的曲线字体,并用这种字体自定义一些文本字段。我们可以直接将word art加载到Fash Textfield中吗?我们可以通过嵌入或任何技术(纯粹通过脚本)来实现吗 不,AS3中没有这样的东西。一个很好的方法是创建一个文本字段,并使用代码切换其中的图片 imgbtn1.onRelease = function() { infoField._visible = true; startLoading("picture1.jpg"); }; imgbtn2.on
imgbtn1.onRelease = function() {
infoField._visible = true;
startLoading("picture1.jpg");
};
imgbtn2.onRelease = function() {
infoField._visible = true;
startLoading("picture2.jpg");
};
imgbtn3.onRelease = function() {
infoField._visible = true;
startLoading("picture3.jpg");
};
function startLoading(whichImage) {
loadMovie(whichImage, "imageLoader");
_root.onEnterFrame = function() {
infoLoaded = imageLoader.getBytesLoaded();
infoTotal = imageLoader.getBytesTotal();
percentage = Math.floor(infoLoaded/infoTotal*100);
infoField.text = percentage+"%";
if (percentage>=100) {
delete this.onEnterFrame;
infoField._visible = false;
}
};
}
您好,谢谢您的回复…但是您能简单地解释一下吗..v不能通过as3编码来做到这一点吗???我如何动态地将word art应用到文本中?…提前感谢。