June 24, 2008

Application Version Control in AS3

Filed under: ActionScript, Bug Fixes, Flex, Japanese — Anthony @ 2:23 am

I thought that I would just write a quick note on how I know which version of an application I am looking at when it has been published to the web. It's all well and good saying its revision 87 from svn but how do you know? Well a simple way is to add it to the Flashplayers custom context menu. Right click to see the custom menu and to view the source (more...)

Custom Color Picker Source

Filed under: ActionScript, Components, Flex — Anthony @ 12:56 am

Some time ago now I decided as a self improvement mechanism to re-write one of the Flex components from scratch so that I could get my head around the Flex Component Framework. So I set my eyes on the ColorPicker Brave or stupid you decide as this was going to be one of my first components ever, I should have probably started somewhere a bit smaller.. But hey.. It works and I learnt a hell of a lot. and now it's time to share. (more...)

June 19, 2008

*.CSS files are Whitespaces Sensitive

Filed under: Bug Fixes — Anthony @ 2:28 pm

Just a quick note to say that if your stylesheets don't seem to be applied correctly
Styles in a .css file are white space sensitive so if you place text-align: left it works but if you place text-align : left it breaks the css as it thinks that the tags name is text-align : ( inclusive of the final space between the last letter and the : ) !!

Profiler Problems in Flex!

Filed under: Bug Fixes, Flex, Physics, Profiler — Anthony @ 12:44 am

After reading an example chapter from Training from the Source : Profiling Flex Applications on InsideRIA I thought ooo! I like using the profiler but i didnt know you could do that! So away I went and opend up one of my apps and clicked Profile.... O no whats going on? No Profiler prompt just straight into the application

Socket closed.
Socket closed.
Socket closed.
Flex Profiler No activity 60 seconds after connection.

and then quiet (more...)

June 5, 2008

Using describeType( ) and getDefinitionByName( ) to return a Dictionary of public static const

Filed under: ActionScript, Flex — Anthony @ 2:47 pm

Wow that was a big title!
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...)

June 3, 2008

Canon Buzzwords goes Live!

Filed under: ActionScript, Flex, JavaScript — Anthony @ 10:28 am

The application went live on Friday lunchtime at http://www.canon-europe.com/buzzwordbuster in support of Canon's attendance at "DRUPA", the "World Cup" of Print Industry events!.

(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...)