Static initializers in AS3
From time to time - expecially after asking google - you stumble upon gems like this one. If you ever wanted to generate lookup-tables for static methods without the need to check if they’re already full of tasty values then static initializers in AS3 are for you:
package
{
// static initializer
{
fillLookupTable();
}
internal function fillLookupTable():void
{
// do some math, array pushing etc. here :]
}
}
Via barneyb
ufutopipejar…
Sexy Back By Justin Timberlake Lyrics …
ufutopipejar
21 Aug 09 at 11:25 am
enyciva…
pictures of mohawks with braids …
enyciva
24 Sep 09 at 11:31 am