Skip to content

The FlexWiz Blog

Notes on Flex, AIR and Game Development

Archive

Tag: Quick Tips

I needed a simple spark button with only an icon – basically a bitmap made into a button. The problem is that I have lots of these buttons, each with a different icon – and all the skin samples use hard-coded assets.

Well, the old Button class used to have an icon style (it was called skin or upSkin) so I decided to bring back the icon style so I’d be able to reuse the same skin and pass a different icon to each instance.
continue reading…

  • Share/Bookmark

Heres a useful tip on using the mx utils package.

Occasionally we need to trace values of objects, whether these are flash display objects or your own classes and VOs.   Simply outputting an object to trace will generate an output like [Object Object] without any useful info about the contents of the object.
continue reading…

  • Share/Bookmark