[samples]: http://www.quietlyscheming.com/blog/components/a-couple-of-samples-from-max-no-not-that-one/

Last week at MAX Barcelona, I did a couple of off-the-cuff presentations and samples for the Flex Boot Camp session on Wednesday afternoon. I promised a few people I would post those samples on my blog. If you saw my presentation at Max, this is not the demo from the presentation, But you still might find these interesting, so check them out. They are:

### Sample 1: Building a custom component
### Sample 2: redefining what the children of an MXML component means
### Sample 3: metaprogramming with custom actionscript metadata

Read more, see demos, and download source here:

Then come back and leave any comments or feedback here.

[MAX 2007 Samples][samples]

A big thanks to everyone who came to MAX this year, both in Chicago and Barcelona. It’s tremendously helpful to us to talk to so many people who are living and breathing by the decisions we make in the SDK, and I really enjoyed meeting a whole new crop of flex developers (as well as saying hi to the old ones).

9 Responses to “A couple of samples from MAX (no, not that one)”

  1. Tony Fendall Says:

    You’re missing the link to the demos

  2. milan Says:

    Finally…I wondered where are you :) Sho leaved, you don’t blog…and I thought something is happening…Then I saw your presentation in Barcelona and everything was clear. Keep on your good work, thanks for this examples!

  3. Shigeru Says:

    I think the 3rd tab (HandleEvent) of sample 3 doesn’t work.

  4. JabbyPanda Says:

    3rd tab sample does not work for me either..

    And “metaprogramming with custom actionscript metadata” sample is created in Flex 3 SDK, not Flex 2.0.1 SDK, is not it?

  5. Darren Says:

    I was the guy asking you to post the samples at MAX… just wanted to say thanks a lot for taking the time, truly appreciated!

  6. Jove Says:

    For the Customer Tags, I find we can only get the public methods by flash.utils.describeType(), but how to get the methods which is defined under protected or other namespace like XXX_internal?

  7. BrianLai Says:

    Looks like this works in a similar way to Java annotations, with the concept of class reflection. So I guess you don’t have privileges to access the definition any private or protected (or internal) members or methods. Not sure if we can access xxx_internal, but maybe we can try to put “use namespace xxx_internal” in the metadata implementing class and hope that it will work?
    Another thought is to use a bunch of getDefinitionByName(“com.myPackage.myClass”) in some manager class to initiate all the class that uses the metadata so you don’t need to call ASBinder.InitObject(this); in each of the class constructors.

  8. rafael Says:

    Hey, great work but i have a big question here, may I add some tags to the picture and this appears when is the current one??? like coverflow…

  9. Sean Wesenberg Says:

    Question:

    In your ASBinder.bindHandler method, you have the following line of code inside the impromptu handler function.

    watcher.unwatch();

    Any reason for this? If I comment the above line out, I can attached similar HandleEvent bindings to multiple methods (one click event triggers 3 methods). Nothing seems to have broken in my code yet. Was wondering if the unwatch() does anything special.

Leave a Reply