Archive for October, 2007

CS3 TileList Component - Custom CellRenderer & caching Images   28 comments

Posted at 1:06 pm in Flash/Flex

Example of how to customize the TileList with a cellRenderer and a way to cache images in a scrolling list. (although I wouldn’t recomend caching images if you have 100’s of them). One Problem I’m yet to figure out is how to have a button inside of a custom cell. Studing fl.controls.TileList it looks like MouseEvents are being consumed by the renderer so child DisplayObjects can’t capture mouseEvents ;( if anyone has suggestions would be great ;)

Example:

Source:

TileList_caching.zip

Feel free to ask questions or offer improvments, hope it helps…

Written by paddy on October 29th, 2007

Sharing Assets (Classes & Library Symbols) is Flash CS3 with AS3   no comments

Posted at 12:06 pm in Flash/Flex

Lots of people have mentioned their disappointment in not being able to exclude classes in AS3 like you used to in AS2 using the Flash IDE. This thread shows how to do it in Flex:

http://www.bit-101.com/blog/?p=941

I’ve seen lots of code snippets of how to load symbols across swfs using Flash but no full downloadable examples. Here’s a very basic one. At the moment the solution isn’t great as you can’t Strong type but it works, sometime you just have to improvise. Here’s hoping Adobe add an exclude feature for Flash in an update so we can Strong type ;)

sharingSymbolsAS3.zip

Read the rest of this entry »

Written by paddy on October 29th, 2007