开发者

Craeating wordArt style by as3

开发者 https://www.devze.com 2023-04-01 12:55 出处:网络
Currently I was asked by my Client to Display Curved Font开发者_StackOverflow中文版s lie word art and customize some of the Text fields with this Font.Can we Load the WordArt directly into Fash Textfi

Currently I was asked by my Client to Display Curved Font开发者_StackOverflow中文版s lie word art and customize some of the Text fields with this Font.Can we Load the WordArt directly into Fash Textfield?can we Do it by Embedding or any technique (purely with Scripting)?


No, there is no such thing in AS3. A good way to do it would be to create a text field and switch around the pictures inside of it using code

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;
}
};
}
0

精彩评论

暂无评论...
验证码 换一张
取 消