Application Version Control in AS3
Custom Color Picker Source
Profiler Problems in Flex!
Socket closed.
Socket closed.
Socket closed.
Flex Profiler No activity 60 seconds after connection.
and then quiet (more...)
Using describeType( ) and getDefinitionByName( ) to return a Dictionary of public static const
Ok i know its not something you would usually have to do but I think this is useful anyway when you have a large list of public static constants declared in a class and you want to somehow loop through them without having to place them in an array or dictionary manually. For example i was writing a Translation utility class today and i needed to add this list of supported languages. (more...)
Canon Buzzwords goes Live!
(The application is also available in German at http://www.canon.de/druck_glossar).
There were some interesting challenges presented with this application such as
- Bilingual
- Deeplinking ( without the use of JavaScript )
- PureMVC Framework
- Component Driven.
The problem with the Deeplinking was the fact that Canon uses a content management system that doesn't allow you to add any JavaScript to the Page! Not even as an include. This posed a big problem with the app due to the fact that Deeplinking was requirement of the brief. As you may or may not know Deeplinking is enabled in Flex via an external folder called history and within this folder you have history.js and history.css files both of which are needed to allow Deeplinking to work. (more...)
Custom Color Picker
Predictive Search Component
You can see it in action here you can search the ( very small ) archives of posts by typing in the search area. The predictive search is performed on the Titles of the Posts whereas if you press return or click search a full search is performed on both the titles and their content. Try it out 'Predictive' is a good place to start!.
Static Code
I often use static variables for creating default styles for my components, these styles then can be overwritten by someone using the component however there will always be my initial stying applied if they arent overwritten.
/***** DEFAULT STYLE DECLARATIONS GO BELOW ***/ private static var STYLES : Boolean = defaultStyles( ); private static function defaultStyles( ) : Boolean { //NO CSS DECLARATIONS var newStyle : CSSStyleDeclaration = new CSSStyleDeclaration( ); if( !StyleManager.getStyleDeclaration( 'yOffSet' ) ) { newStyle.setStyle( 'yOffSet', 30 ); } StyleManager.setStyleDeclaration( 'CustomComponentName', newStyle, true ); return true; }