Repository for the random musings of the award winning digital creative developer Matt Bindoff. Pls excuse this theme - waiting to get some time to integrate into site design. Also website way overdue for an update. One of these days... bindoff.co.uk
Auditorium - wonderful sound toy
Simple class to include dynamic fonts in your flash movie. You can either compile this from your fav AS editor or apply it to an FLA as the document class.
To access the fonts, all you will need to is load in the generated swf into your project and use the fontName value you specify in the class to apply the appropriate font.
It’s also good practice to limit the unicode range to characters you need. Adobe provides a good reference, flash-unicode-table.xml, which you can find inside the Flex SDK 2/frameworks folder.
package {
import flash.display.MovieClip;
import flash.text.Font;
public class Fonts extends MovieClip {
[Embed(source=‘C:/WINNT/fonts/DiCnBd.ttf’, fontName=’_dinBold’, unicodeRange=‘U+0021-U+007A,U+00BB,U+00A9,U+2122,U+00AE’)]
public static var _dinBold:Class;
Font.registerFont(_dinBold);
trace(”_dinBold LOADED”);
[Embed(source=‘C:/WINNT/fonts/arial.ttf’,fontName=’_Arial’, unicodeRange=‘U+0021-U+007A,U+00BB,U+00A9,U+2122,U+00AE’)]
public static var _Arial:Class;
Font.registerFont(_Arial);
trace(”_Arial LOADED”);
[Embed(source=‘C:/WINNT/fonts/arialbd.ttf’, fontWeight= “bold”,fontName=’_ArialBold’, unicodeRange=‘U+0021-U+007A,U+00BB,U+00A9,U+2122,U+00AE’)]
public static var _ArialBold:Class;
Font.registerFont(_ArialBold);
trace(”_ArialBold LOADED”);
}
}
This one had me stumped, until I realized what it was telling me… that my submit button was named “submit”. I changed the name of the submit button and the problem went away. Basically, Javascript provides a “convenience” by adding the names of the form inputs as children of the form. But this then clashes with preset function names, like the submit() function.<input type="submit" name="submit" id="Button1" /><input type="submit" name="button1" id="Button1" />
If you’re looking to try your hand at creating an iOS icon a quick little tip for those that want their site to render an icon on the homescreen when bookmarked, simply save out your icon as “apple-touch-icon.png” and dump it in the root directory of your domain.