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.
Code in use:
var sortList:Sort = new Sort();
sortList.fields=[new SortField("name",true)];
myXmlListcollection.sort = sortList;
myXmlListcollection.refresh();
Tags: as3. flex, case insensitivity, caseInsensitivity, Sort, sortField
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: adobe, air, as2, as3, clickTag, Development, flash, flex, metrics, tracking
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: actionscript, adobe, air, as3, as3.0, code, flash, flex
10/10
2009













Adobe MAX Boxed Lunch, yum yum.
Tags: adobe, adobe max, air, as3, flash, flex, max
05/29
2009
The Google I/O Developers Conference 2009


The Google Wave Announcement!






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

Adobe Flash Camp 2009


Tags: 2009, adobe, adobe flash, camp, conference, developers, flash, google io