Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!
Sep 19 2008
Using TileList Flex Component in AS3 Class
I’ve been looking for an example for using Flex MediaTile Component in AS3 class. I really couldn’t find any. So, posting an example code snippet to show how to use it within an AS3 class:
private function draw( ):void
{
var mediaTile:TileList = new TileList( );
var mediaCollection:ArrayCollection = new ArrayCollection( );
mediaCollection.addItem( {id:"1", url:"image1 .jpg"} );
mediaCollection.addItem( {id:"2", url:"image2.jpg"} );
mediaTile.dataProvider = mediaCollection;
mediaTile.itemRenderer = createItemRenderer( );
}
private function createItemRenderer():ClassFactory
{
var temp:ClassFactory = new ClassFactory();
temp.generator = MediaThumbnail; //MXML class to use as a tile
return temp;
}
MediaThumbnail.mxml:
Sep 19 2008
FlashTracer for Firefox 3.0
I’ve been using FlashTracer as a Flash/Flex debugging tool (to see the traces) for a long time. In fact I didn’t even upgraded to Firefox 3 as the FlashTracer 2.20 doesn’t support FF3.
For those who love FlashTracer its a great news that, this plugin is available for Firefox 3.0. The plugin is not listed in the Firefox add-ons page. You can download it from here.
