Using Flash CS3 with Flex 2

On the heels of my last article, Adobe has just released the Flex Component Kit for Flash CS3 on Adobe Labs. This ultra-cool kit lets you use Flash MovieClip symbols seamlessly in Flex.

This is really an impressive piece of work. All of the effort by the Flash and Flex teams comes together here. You’ll see why changing to ActionScript 3 was so important and how fluid the workflow has become. If you’ve been waiting to use Flex 2 or can’t decide if Flash CS3 is right for you, now’s the time! If you have any Flash content in Flex, or if you’ve been considering adding Flash content to your Flex applications, this is what you have been waiting for!

For example, once you export your Flash CS3 MovieClip as a SWC, you use it just like a custom component in Flex (there’s no SWFLoader necessary). This means you have access to its public methods and symbols as with any Flex component. You can also handle events dispatched by the Flash CS3 MovieClip.

How do you do all of this? Rush right over to the Flex Component Kit for Flash CS3 page and read the instructions. You will need to be using Flex 2.0.1 and update that with the Flex 2.0.1 patch for CS3 Compatability (also linked from the Labs’ page).

Have fun. Be creative. Show the world what only Flash technology and your imagination can do.

(did I mention that I think is a really great idea?)

5 Responses to Using Flash CS3 with Flex 2

  1. batman says:

    sir, is the flex 2 program in adobe cs3 web premium?

  2. Peter Ent says:

    Flex 2 is not part of the Creative Suite. I don’t believe the Flex Component Kit for Flash CS3 requires a particular level of Flash CS3, but I could be wrong.

  3. Robert says:

    Peter, I’ve seen this come up on one message board, but no solution as of yet. With flash 8 and AS2, I would build my .fla and then code in classes. This required you to give components an instance name and then you’d have to declare them again in the class code to manipulate them with actionscript. With Flash CS3, you can do either, but not both. This gives you disadvantages of either not seeing things visually in flash cs3 or not having any sort of code hinting regarding your visual assets in your code editor of choice due to your assets not being declared. I’m not real happy with the change as I think it will take longer to debug problems in the future in spite of the new debugger. Do you have any workarounds for this or know if Adobe is planning on addressing it?


  4. Peter Ent says:

    Robert, Thanks for reading my article.

    I don’t have that much experience with Flash CS3 yet. I wrote these articles to show that Flash and Flex have come much closer together. I can see what I can do, but I recommend you post your question to the Flash forums; folks there have much more experience than I do and are better able to answer your question.

  5. Robert says:

    Hey, I have an update to this. Looks like there is a setting buried down in the publish settings for actionscript 3 on flash cs3 that won’t automatically declare variables for you. Uncheck the checkbox in the stage category and you’re happy.