Thanks FUEL TV

Posted by brandonthedeveloper at August 22nd, 2008

Big thank you to Fuel TV for the generous schwag package I received earlier this week.

Its always nice to get product in appreciation (I’ve skateboarding since 1974). Especially when you are so far outside the target audience. Now if I could just get my Vans hook up back…

Check out Fuel TV –
web – http://www.fuel.tv
twitter – http://www.twitter.com/fueltv

Posted in Skateboarding| 2 Comments | 

It’s Official

Posted by brandonthedeveloper at August 21st, 2008

Adobe User Group Manager
Just realized I hadn’t mentioned that as of last month, I’m officially the co-manager for our Adobe User Group – FDUG here in Richmond, Va. Lou Barber and I have some great presentations, speakers and a few surprises lined up for the coming months so stay tuned.

Speaking of FDUG, there is a meeting tonight (08/21/2008) from 6 – 8 at ArtWorks in south Richmond. Users at any level of interest in Flash, Flex or AIR should definitely attend. The meetings are casual and there is no fee.

Posted in Adobe, FDUG| 1 Comment | 

FDUG Meeting 08/21/2008

Posted by brandonthedeveloper at August 20th, 2008

Just a quick reminder that the Flash Development User Group (FDUG) in Richmond, Virginia will be meeting tomorrow night – 08/21/2008 at ArtWorks in south Richmond from 6 – 8.
My old friend Kevin Power from the Martin Agency will be talking about programmatic animation in Flash and I’ll show some component skinning in Flex.

All levels and abilities are encouraged to attend. Come out and support Flash in Richmond!

Questions? Email me at brandonthedeveloper at gmail dot com.

Posted in Adobe, FDUG, Flash, Friends| No Comments | 

Removing Duplicates from an ArrayCollection

Posted by brandonthedeveloper at August 8th, 2008

I needed a Filter function to remove duplicate items from an Array Collection so I thought I’d do a quick post to share the code.


< ![CDATA[
import mx.collections.ArrayCollection;

private var tempObj:Object = {};

[Bindable]
private var filterBtnCol:ArrayCollection = new ArrayCollection(
[{label:"Frank Black"}, {label:"NOFX"}
, {label:"Jawbreaker"}, {label:"Frank Black"}, {label:"NOFX"}, {label:"Jawbreaker"}
, {label:"Frank Black"}, {label:"NOFX"}, {label:"Jawbreaker"}]
);

private function filterCollection():void {
// assign the filter function
filterBtnCol.filterFunction = deDupe;
//refresh the collection
filterBtnCol.refresh();
}

private function deDupe(item:Object):Boolean {
// the return value
var retVal:Boolean = false;
// check the items in the itemObj Ojbect to see if it contains the value being tested
if (!tempObj.hasOwnProperty(item.label)) {
// if not found add the item to the object
tempObj[item.label] = item;
retVal = true;
}

return retVal;
// or if you want to feel like a total bad ass and use only one line of code, use a tertiary statement ;)
// return (tempObj.hasOwnProperty(item.label) ? false : tempObj[item.label] = item && true);
}
]]>

Posted in AS 3, Code| 7 Comments |