2 Replies Latest reply on Jul 30, 2010 2:12 PM by bcousert

    Round trip between Flash Builder and Catalyst?


      Is it, or will it, be possible to go back to Flash Catalyst once a project as been brought into Flash Builder?


      I have imported the .fxp project into Flash Builder, made some code changes, then exported a .fxp project out again.  I want to be able to edit this in Catalyst so I can make design changes, but when I try to open the project Catalyst says it cannot be opened becuase it has been edited outside of the application.  Is there something I am missing or has this simply not been implemented yet?


      It would be a shame to not be able to "round trip" from Catalyst to Builder.


      Thanks for your time and the product looks very exciting.

        • 1. Re: Round trip between Flash Builder and Catalyst?
          acath Level 4

          Hi Watern,


          For the first version of Catalyst, we're focusing on the one-way workflow from Catalyst to Builder (start in Catalyst, finish in Builder). We realize this is a big limitation and hope to address soon after the first release.


          There are a number of partial solutions for this problem, which you can find by searching around the forum. Most of them involve dividing the work between Catalyst and Flash Builder as cleanly as possible, which is surprisingly easy to do given the new skinning architecture. Here's an excerpt from a post I wrote that seems to have been lost:


          "If you are iterating between Catalyst and Builder on a custom component, you may find it is worth splitting the custom component out in that fashion. I'm planning to write an article explaining this, but here's a preview:



          •   In Builder, create a new subclass of SkinnableComponent. Put the component logic in there.


          •   If you need to add visual logic like "now move the konfabulator 10px to the left", you should make konfabulator a skin part, using the metadata (see Scrollbar.as, in the Flex 4 SDK, for an example).


          •   If your component has states, declare them with the metadata.


          •   In Catalyst, make sure that your custom component has those parts and states.


          •   Then import the custom component into Builder.


          •   In the MXML file for the custom component, change the root tag <Group> to <Skin>. It's now a skin (not a custom component).


          •   In the MXML file for the skin, add the [HostComponent("com.me.MyComponent")] metadata (see HScrollbarSkin.mxml, in the Flex 4 SDK, for an example).


          •   Wherever you are creating the instance, change the code <MyComponent/> to <MySkinnableComponent skinClass="MyComponent"/>. Now you're creating an instance of your skinnable component and assigning it the skin created in Catalyst.


          Done! If you make more changes in Catalyst, you'll have to repeat steps 5-7 again (for now!)."



          • 2. Re: Round trip between Flash Builder and Catalyst?

            I'm relatively new to object oriented programming, but I was wondering if it was possible to create a main program in Flash Builder that overloaded functions in a secondary Flash Catalyst project? If so, then it shouldn't be necessary to modify the FC project directly, thus allowing round tripping...


            Is something like this possible?