Flash Date Errors

Flash has a lot of functions for creating and setting dates but you have to be careful using them. In fact it may be safer not to use them at all.

Consider this action script:

var birthdate:Date = new Date();
birthdate.setDay(17);
birthdate.setMonth(7);
birthdate.setDay(1969);
Will this always set the date to be 17th July 1969?

[More]

Flash Instance Names - spot the error

Say we have a simple flash file with an instance of a symbol on the stage (like a rectangle). The rectangle has an instance name and we want to change or display it's properties via action script.

Here's a screen shot of the stage and the instance properties.

[More]

Flash Internationalization and Flash Fonts (part1)

Lets see how we can use the code in my previous article on internationalization and apply it to a flash fla.

Here's a flash file we want to convert: static fla(28K), static swf(12K), currently all of the text inside the fla is static text.

First we need to create some xml files containing the content in the languages we want English and French and Japanese.

[More]

Flash Internationalization

Flash has good support for internationalization but it does have a few restrictions such as you need to recompile your fla if you add a new language.

I've come up with a fairly simple way to load languages from XML files and to support the following:

  • Language defaults to the users language
  • Language can be set via a URL parameter
  • New languages can be added after the swf is deployed

[More]

Copyright © Justin Mclean 2008
BlogCFC by Raymond Camden.