You certainly don’t need ActionScript to make use of embedded fonts. You can always just embed font outlines manually by selecting a text field, then using the Embed button in the Property inspector. Select your range of characters, type in your text, then publish; you’re good to go (and you only need to do it with dynamic and input text fields: static text fields embed font outlines automatically). In fact, if your text field has an instance name — something you can also set in the Property inspector — then you can determine its text content with ActionScript and the embedded font outlines still hold. But if you’re using ActionScript to create text fields on the fly, the mechanics are a bit different. Let’s take a look. Keep reading »
Archive for February, 2008
Sound pretty neat? I’ve seen a few examples of this online and at conferences, so I delved into this topic myself to see how much fun it might be. Turns out it can be somewhat challenging, but definitely fun to see the results. I put together an example in order to explore the basic mechanics of this form of progressive enhancement — a slideshow SWF that takes its cue from the HTML in which it appears — and turned it into a three-part series on CommunityMX.com. The first part is free and covers how to get the HTML from the Web page itself into the SWF. The follow-up articles go into how to parse that HTML in AS2 and AS3. CommunityMX offers free trial memberships, so if you aren’t interested in becoming a subscriber, you can wait until the follow-up that interests you gets posted (not sure yet when that will be), then sign up for the trial membership. Of course, if you want to subscribe, that would be cool too!