import flash.display.Loader;
import flash.display.LoaderInfo;
import flash.net.URLRequest;
import flash.events.Event;
var fontLoader:Loader = new Loader();
var fontLoaderInfo:LoaderInfo = fontLoader.contentLoaderInfo;
fontLoaderInfo.addEventListener(Event.COMPLETE, onFontLoaded);
fontLoader.load(new URLRequest("Verdana.swf"));
function onFontLoaded (e:Event):void {
var info:LoaderInfo = e.currentTarget as LoaderInfo;
var loader:Loader = info.content as Loader;
var embeddedFonts:Array = Font.enumerateFonts(false);
for(var i:Number = 0; i < embeddedFonts.length; i++){
var item:Font = embeddedFonts[i];
trace("[" + i + "] name:" + item.fontName + ", style: " + item.fontStyle + ", type: " + item.fontType);
}
}
Versed in Flash ActionScript, primarily in interactive website and game design/programming . Experienced in Flash/Flex based new media design, customized online solutions with innovative concepts, high impact websites through creative technologies. 7 years of software development and OOD experience C, C++ and 3D Graphics programming Versed in full-life cycle skills, including requirements analysis, modeling, object-oriented analysis ,OOP, deployment, maintenance, and refactoring using UML
Tuesday, July 17, 2007
Sharing Fonts in ActionScript 3.0
http://www.communitymx.com/content/article.cfm?cid=67A61
No comments:
Post a Comment