Tuesday, March 29, 2005
This is really a reminder to myself and might help a few people who are making the same mistake I always make. When you dynamically create a textfield using MovieClip.createTextField() you have to do a couple of things in order to get the correct font to appear. First you need to add a new font to your library and give it a name (eg. "someFont"), then and this is the bit I always miss, you have to right click on the font symbol in your library and select linkage and select Export for actionscript.Finally you need to setup a TextFormat object in your code:
var my_fmt:TextFormat = new TextFormat();
my_fmt.font = "someFont";
my_txt.setTextFormat(my_fmt);
All sounds pretty obvious doesn't it, but I always make the same mistake and think that just because I have given the font symbol a name that I don't have to add a linkage id!
Jon 11:16 AM Permalink
Sunday, March 20, 2005
This is something most people probably take care of on a daily basis but I found a very useful email validation prototype over at http://www.sephiroth.it which I have just used to amend my contact form on freaksauce as I keep receiving empty email messages.UPDATE:
Jonas Galvez kindly added a comment to inform me that there is an updated version of this code that you can find here.
Jon 12:18 PM Permalink
Tuesday, March 15, 2005
This (http://amaztype.tha.jp/) is a really clever use of Amazon's web services. I typed in flash, left if for 5 minutes, flicked back to the tab and saw just about every flash book you can imagine creating the word Flash in giant letters across my screen, that Yugo Nakamura is a very clever bloke!Jon 10:42 AM Permalink
