Development
11/05

2009

Toggle case insensitivity for SortField when sorting Collections for Adobe Flex 3.4 / ActionScript 3.0 with second parameter (caseInsensitive) passed into the SortField Class:

SortField(name:String, caseInsensitive:Boolean, descending:Boolean, numeric:Object)

Sorting by default is case-sensitive (Z precedes a). Set to “true” for case insensitivity.

SortField("name",true)

Code in use:

var sortList:Sort = new Sort();
sortList.fields=[new SortField("name",true)];
myXmlListcollection.sort = sortList;
myXmlListcollection.refresh();

Tags: , , , ,

10/23

2009

If you’ve ever worked with an interactive advertising agency, more than likely at some point or another you had to deal with clickTag for Metrics Tracking.

Here’s how we loaded up the clickTag parameter and launched the URL in AS2:

AS2

button.onRelease = function(){
if (_level0.clickTag.substr(0,5) == "http:") {
getURL(_level0.clickTag, "_blank")
}
}

Now that Media Platforms are slowly starting to allow for Flash Player 9+ content.. here is the AS3 method of calling the clickTag parameter and launching the URL:

AS3

button.addEventListener(MouseEvent.CLICK, clickHandler);
function clickHandler(e:MouseEvent):void
{
try{
if (root.loaderInfo.parameters.clickTag.substr(0,5)=="http:")
{
navigateToURL(new URLRequest(root.loaderInfo.parameters.clickTag), "_blank");
}
}catch(err:Error){
trace(err);
}
}

Enjoy!

Tags: , , , , , , , , ,

10/19

2009

A clean and simple way to remove all children in a MovieClip, Sprite, DisplayObject Container (AS3).

while(container.numChildren){
container.removeChildAt(0);
}

Tags: , , , , , , ,

10/10

2009

Adobe MAX 2009

Adobe MAX 2009
Adobe MAX 2009

Adobe MAX 2009

Adobe MAX 2009

Adobe MAX 2009

Adobe MAX 2009

Adobe MAX 2009

Adobe MAX 2009

Adobe MAX 2009

Adobe MAX 2009

Adobe MAX 2009

Adobe MAX 2009
Adobe MAX Boxed Lunch, yum yum.

Tags: , , , , , ,

05/29

2009

The Google I/O Developers Conference 2009

google io 09

google io 09
The Google Wave Announcement!

google io 09

google io 09

google io 09

deflated google io 09

google io 09

google io 09
The Developer’s Android “myTouch 3G” (G2)

google io 09

Adobe Flash Camp 2009

adobe flash camp 09

adobe flash camp 09

Tags: , , , , , , ,