Home

Follow Skinkers.

Recieve all the updates from Skinkers via email:

 

Posts Tagged ‘Custom Implementations’

0

Using the Flex Singleton register Pt 2/3 (Overriding Flex implementations)

March 8th, 2010 | AS3, Flex | Matt Bryson

This is the second in a 3 parter about the flex singleton register. This post will look at how to register your own classes with the Singleton register so you can actually use your custom implementations instead of the Flex default implementations.

Read the rest of this entry »

0

Using the Flex Singleton register Pt 1/3

March 1st, 2010 | Air, AS3, Flex | Matt Bryson

This is the first in a 3 part post about using the Flex Singleton register. This post will deal with what the Flex Singleton register is as well as how and why its used. The second will look at how to register your own classes with the Singleton register (not as easy as it sounds) and the third will be a real life example.

The final post will show you how to give the Alert control the ability to create a modal overlay that supports a custom chrome in Adobe Air. The big pain with a custom chrome (say a splat shape) is that the modal overlay covers the entire bounds of the window – including any transparent areas. So for irregular shapes/chrome – like a splat as a background, you get a big square slapped over the top – not ideal. What you want is ONLY the splat to be overlaid with the modal background.

By using the Singleton register and a custom implementation of the PopupManager we can add this functionality without having to create a custom Alert class. You don’t have to change any of your existing app code where Alerts are used, all existing calls to Alert will now have our new and improved modal background!

Read the rest of this entry »