Flex2 crazyness

After the interesting actionscript.it conference I decided to give more of my free time to Flex2 and expecially to components creation.
I must admit that ActionScript 3.0 documentation is probably the best documentation I ever seen about flash, but I can’t say the same thing about Flex developement.
Once I had to look for advanced features of Flex components, advanced compiler options etc.. I began to slam against a wall. The developer compoents guide is incomplete and does not cover all the aspects and it has some errors probably due to incorrect revision after the beta program.
So I had to search in the livedocs, but here there are missing links (many links still point to the beta version and they’ve benn removed) and the informations are spread in completely different pages…

Anyway, this is my first test with Flex2 components.. I just made a porting of my color picker as2 component.. that’s because the builtin flex2 picker is too poor.

The problem with the compiled SWC file is that Flex displays also all the other classes used in the component as they are different UI components and I didn’t find anywhere how to compile with compc an swc file which exposes just the UIComponent I want. The documentation says about “-include-component” compiler option, but it’s an error because the compiler does not allow that option!
This is the script I’m using for compiling it:

1
compc -source-path="." -namespace http://www.sephiroth.it/2006/mxml mxml-manifest.xml -if assets.swf images\assets.swf -if CPicker.png CPicker.png -include-namespaces http://www.sephiroth.it/2006/mxml -output "C:\Program Files\Adobe\Flex Builder 2\Flex SDK 2\frameworks\libs\sephiroth\CPicker.swc"

Gcse Ict Help Coursework http://labs.sephiroth.it/flex_colorpicker/

  • Stephen Gilson

    click Hi,
    I was curious about your finding links to the Flex Beta docs on LiveDocs. Are you doing the search from within the final version of LiveDocs at this URL:
    http://livedocs.macromedia.com/flex/2/
    Or, are you getting there from some other type of search? Please let us know if you find any incorrect links and we will fix them.
    Unfortunately, the include-component option does still appear in the “Creating and Extending Flex 2 Components” book. It was renamed to -include-classes during the Beta cycle. It is correctly described in the “Using the Flex Compilers” chapter of the “Building and Deploying Flex 2 Applications” book here: http://livedocs.macromedia.com/flex/2/docs/00001477.html.
    Please let us know if you find any other issues with the Flex doc.
    Stephen Gilson
    Flex Doc Team

  • go to site I forgot to write down the errors i found in these days, but I will indeed inform you about all the errors I will find from now.
    thanks for the response!

  • _brice

    hi!
    your color picker component (flex2) is very interesting!
    is it possible to download it somewhere on your website?

  • click here FlashFlickr, testing Flickr API

    a flash application using Flickr API