Skip to content

Instantly share code, notes, and snippets.

@lynndylanhurley
Created December 8, 2010 16:08
Show Gist options
  • Save lynndylanhurley/733478 to your computer and use it in GitHub Desktop.
Save lynndylanhurley/733478 to your computer and use it in GitHub Desktop.
public function set assetList(list:Array):void
{
_assetList = list;
for each (var asset:AssetVO in _assetList)
{
if ( asset.alt == "thumb" )
{
var upIcon:String = asset.url;
var frame:AssetVO = ArrayUtil.getItemByKeys( _assetList, { id:asset.id, alt:"detail" } );
var pButton:FrameToolPatchifyerButton = new FrameToolPatchifyerButton({
upState : "frameBGUp",
upIcon : upIcon,
downState : "frameBGDown",
active : false,
frame : frame.url,
action : new Event( FRAME_TOOL_CLICK, true )
});
pButton.y = toolContainer.numChildren * 66;
toolContainer.addChild( pButton );
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment