Saturday, May 31, 2008

Labels:

Thursday, May 29, 2008

Obtaining Flash Vars n AS3
AS3 to obtain flash vars

var flashVars:Object = LoaderInfo(this.root.loaderInfo).parameters;
trace(flashVars['variable name']);

Labels:

Tuesday, May 27, 2008

Email Verification through Regular Expressions - AS3
Here's an example to test email addresses using regular expressions:

var pattern:RegExp = /^[a-zA-Z][\w\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$/;

var goodEmail:String = "nick@thewhitewood.com";
var badEmail:String = "nick@thewhitewood";

trace(goodEmail, " is valid:", pattern.test(goodEmail));
trace(badEmail, " is valid:", pattern.test(badEmail));

Labels: ,

Multiple Text Events in Single Textfield - AS3
Ran into an issue using multiple text links within an html field to call functions. Being that the textfield will only listen to the type of event - it is not possible to set different outcomes for different links as the eventListener is triggered by the listener set on the textfield. A little trick using the event.text function will allow you to see the name of the function being called.

Labels:

Friday, May 23, 2008

Logo Type

Labels:

Tuesday, May 20, 2008

Friday, May 16, 2008

Labels:

Wednesday, May 14, 2008

MUTO a wall-painted animation by BLU

Thursday, May 08, 2008

AS3 1151: A conflict exists with definition in namespace internal
A little tip

Labels:

Tuesday, May 06, 2008

Labels: ,

Monday, May 05, 2008

© 2005-2008 Nicholas Wood