Latest Entry

Learning Flex 3

June 17, 2008 5 Comments

I'm currently doing a couple of freelance projects during the summer and one of them includes working with Flex. I've done a lot of Actionscript 3 and feel confident enough to work with it so I've just started to learn Flex 3 (thank god for lynda.com). But I don't like the fact that I have to write the Actionscript code in the mxml file. There has to be a better way right?

Does anyone know some best practices for Flex 3?

Tags: , , , , ,

Comments

Stephan Lenting
Stephan Lenting June 17, 2008

Pfff...sound pretty hard to me ;)
I think im gonna learn some programming too during the summerbreak...

Alcides Fonseca
Alcides Fonseca June 17, 2008

Your code should be written in AS files, that call MXML objects. I don't know exactly how you glue it, but I guess you just instantiate it from AS.

Fubiz
Fubiz June 20, 2008

Beautiful template!

brian
brian July 5, 2008

You don't have to only use script blocks in you MXML. I generally use the "code behind" method which allows you to separate your AS and MXML completely. Basically you just extend any of the built in classes. Here are some links for reference.

http://www.onflex.org/ted/2007/02/code-behind-in-flex-2.php

http://thecomcor.blogspot.com/2008/06/flex-code-behind-pattern.html

Alex Radsby
Alex Radsby July 5, 2008

Woa thanks a lot Brian, it really helps out a lot!

Add comment

Required
Required (don't worry I hate spam emails too)

Be nice! Spam and irrelevant comments will be deleted.

I'm available at

  • My Linkedin Profile
  • My Flickr Profile
Alexander Radsby

Hi, I'm Alexander Radsby and this is my very personal space. Here I will rant about life as a designer, student and a human being.

You can both subscribe to the RSS feed and Atom feed for this site.

  • DesignCharts
  • alex.radsby@gmail.com_379404da
  • Typo
  • Typo
  • IMG_4700
  • IMG_4698
  • IMG_4696
  • IMG_4695