Author Archives: julien

Siam Flex framework | First Beta Released! (0.4.0)

Long time, no news…. It’s been almost 6 weeks since the last update of Siam Flex Framework. But today I am proud to present to you the first beta release of Siam!

I’ve been spending a lot of time refining the core elements of Siam to ensure that we have the right API going forward.

So what’s new?

  • Easier configuration with improved syntax and default specification
  • Editors and validators are now supported
  • Simpler API using factory and context classes
  • Structured import for all data representation classes
  • More control over formatting behavior

Where can I download it?

The project is hosted at http://code.google.com/p/siam-flex/.

You can try out the latest features with the Siam Flex Explorer:
Siam Flex Explorer

The explorer encapsulate an example of application using all features of Siam and allows you to alter its XML configuration at run-time for demonstration purposes. The embedded example include implementations of a dynamic data grid and form, as wells as an adapted chart component.

Details follow below… Continue reading

Flex Style Introspection

If you have ever used the Flex introspection method describeType(), you certainly have noticed it doesn’t output any style metadata. The only way I found so far was to instantiate the UIComponent type I’m looking at and call the function regenerateStyleCache(false). The entire list of available styles is then accessible via the properties inheritingStyles and nonInheritingStyles. Generating the style cache is computation-intensive so like most reflection and introspection operations make effective use of it :)

Some code example after the jump… Continue reading

Publishing Flex applications to Google Code SVN repository

I’ve been struggling with this one a couple of times, so I thought I should share how I solved it.

Problem:
You are hosting or contributing to an open-source project on code.google.com using SVN as source control.
You would like share Flex applications (and View Source) by accessing their public SVN URL.
Applications pages (HTML) show raw text.

Solution:
Make sure you set the SVN property svn:mime-type for each file:

  • *.html: “text/html”
  • *.css: “text/css”
  • *.zip, *.swf, *.png: “application/octet-stream”

Siam Flex framework | 0.1.0 Alpha Released!

Today I released the first version of Siam Flex Framework! The project can be found at http://code.google.com/p/siam-flex/. Please try it out and let me know what you think. It’s an Alpha release, in other words it’s not fully tested and there is little documentation. But starting with the Getting Started section on the project page should help you get an understanding of the framework.

Siam Flex framework | Preview

Siam Flex framework aims to provide usability and rapid application development changes to the existing Adobe Flex data representation support. Siam is a lightweight framework that enables you to quickly represent your application data models regardless of their type or origin.

This preview introduces the envisioned features of the framework and contains also code examples and ideas for future releases. Siam is still in early phase, so your feedback is highly appreciated!

The project can be found at http://code.google.com/p/siam-flex/.

Continue reading

Ruby Development Toolkit for Eclipse IDE | RDT

I’ve been looking into Ruby and Rails recently since I deployed Redmine at my company to support our software development projects. For those who don’t know Redmine, this is a great piece of open-source software, offering a complete web collaborative solution for project management including source control, wiki, issues tracking, ldap authentication…

Today, I just found out there is a Ruby Development Toolkit (RDT) plugin for my favourite IDE… Eclipse! Sweet! The toolkit is downloadable via Eclipse Software Update, the remote site URL is:

http://updatesite.rubypeople.org/release

Features supported are syntax highlighting, on the fly syntax check, graphical outline, Test::Unit view/runner, Ruby application launching, content assist, source formatter, Ruby debugging, Type Hierarchy view, Ruby specific Search, Refactoring, and much, much more…

How to render HTML in code.google.com

Update: see latest article Publishing Flex applications to Google Code SVN repository

If you are hosting or contributing to an open-source project on code.google.com using SVN as source control, there is small trick to render .html source files as HTML and not raw text (default). Make sure you set the following SVN property for each file: svn:mime-type "text/html". I find this quite useful for showing examples or demos (using it for Flash/Flex).

Style binding support for custom Flex components

I’ve been developing a lot of custom Flex components recently using Degrafa, and too many times got frustrated at the fact that Flex only supports inline binding for CSS style attributes. Besides that, the only way to listen to style changes is to override:

UIComponent.styleChanged(prop:String):void

I was finally happy to find out that Josh already shared a nice Proxy implementation that allows me to automatically bind style attributes to degrafa properties/styles. Makes my code more readable and maintainable. Thanks Josh!

Update: I posted a small example here and the source code can be download from there.