Flash CS4 custom metadata now possible? So far yes!

Michael Wills's Avatar

Michael Wills

09 Mar, 2010 06:12 PM

I have an app that heavily uses FLAs but is compiled with FlexBuilder as an AS3 project. I need to be able to compile it from Flash as well. I have seen the posts that say custom metadata is thrown out in Flash CS3/CS4 however I stumbled upon this today:


In Flash CS4 by exporting the SWC it apparently keeps the custom metadata. I have confirmed that my app now works partially when compiled in the Flash CS4 IDE. The app starts up and I get to my initial screen. A lot happens behind the scenes just to get to that point so signals are being dispatched (AS3 signals/Robotlegs app). So it works. Partially. After that I lose functionality. It might be because in reponse to changing a state I need to load a view dynamically and the mediator somehow doesn't connect. I'll have to debug more on this later but it'd be very cool if RL can be compiled in the Flash CS4 out of the box. Well... with a few changes like adding the Flex swc.

Oh correction. The view IS added, the view IS moderated, and the animation I am calling DOES get called (seen through MonsterDebugger) BUT it's not behaving as it does when compiled with FlexBuilder. So that gives me something more to look for.

Otherwise is there anything out there to help convert standard mappings to SwiftSuspenders XML format? :)

  1. 1 Posted by Jos Yule on 09 Mar, 2010 06:36 PM

    Jos Yule's Avatar

    Well, if i can toot my own horn for a moment, i've built an AIR based app for generating the XML required for Robotlegs to work with the Flash IDE.

    You can find the source here:

    There are still missing elements to the app (only works for variable injection, its ugly), but it works within those constraints.

    You can also look at the code to see how to import and use the generated XML in the context.

    Any other questions feel free to ask.


  2. 2 Posted by Michael Wills on 10 Mar, 2010 09:29 PM

    Michael Wills's Avatar

    Nice! I hope to take a look within a week or so. Thanks for the toot!

  3. Support Staff 3 Posted by Shaun Smith on 11 May, 2010 03:48 PM

    Shaun Smith's Avatar

    Hi Michael,

    Were you ever able to determine what was breaking when you compiled with the IDE? I tried the Export SWC trick mentioned in the link you posted on a simple project and it seemed to work. It would be awesome to be able to support CS3/4/5 out-of-the-box.

  4. 4 Posted by Michael Wills on 11 May, 2010 10:16 PM

    Michael Wills's Avatar

    Unfortunately I hadn't had time to dig in to what failed. I had also tried on a smaller project and that worked. My initial suspicion is that items already on the timeline in swfs mapped to view classes are not being handled the same as new instances created in code do. I hadn't had time to test that theory yet though.

  5. 5 Posted by Michael Wills on 12 May, 2010 09:45 AM

    Michael Wills's Avatar

    This has been resolved on the list as far as I know. My original project failed because (and I have no idea why) Flash CS4 had a problem of having a Document class. The thread is here:


    As noted in the thread this has been confirmed on Flash CS4 and Flash CS5. Flash CS3 is still unknown at this point.

    Thanks all!

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac