Can't get an app to run in Flash Builder 4 using Robotlegs

Chris Sheffield's Avatar

Chris Sheffield

25 Mar, 2010 09:27 PM


Let me start by saying I'm still relatively new to Flex/Flash Builder, and very new to Robotlegs. In order to learn both a little better, I've been searching for Robotlegs tutorials. I came across the video here, which was exactly to type of "getting started" tutorial I was looking for (I apologize, I don't know the name of the author).

I'm using the new Flash Builder 4, while the author is using Flex Builder 3. I was able to make the appropriate changes in order to avoid compilation errors (like placing the Context declaration inside Declarations tags and replacing Canvas with Group in the SimpleText.mxml component), but when I get to the point of running the app for the first time (about 9:45 into the video), I see nothing. In other words, the app launches just fine, but there is no visible TextArea component as there should be.

Shouldn't this work just fine in FB 4? Am I doing something incorrectly? As I said, I have no errors in the project. The app launches without error. I'm just not seeing the TextArea. I'm assuming something is not getting added to the contextView. But I have gone through the video twice to verify my code and it looks okay. Maybe there's some other step that's necessary to make it work with FB 4? Wondering if someone can check it out and let me know.

Thank you,
Chris Sheffield

  1. Support Staff 1 Posted by Joel Hooks on 25 Mar, 2010 09:30 PM

    Joel Hooks's Avatar

    I have a bit of time today. I will take a look at Brian's video and create the source in FB4.

  2. Support Staff 2 Posted by Joel Hooks on 25 Mar, 2010 09:52 PM

    Joel Hooks's Avatar

    Here ya go. I imagine it is because he is addChild on the application (contextView) and with Flex 4/Spark you need to addElement. Notice how I cast it. Frankly, I wouldn't do this adding of views in a command. Instead I'd mediate the main application and add the view there where it is properly casted, but irrespective of that I've attached the demo in Flex 4.


  3. 3 Posted by Chris Sheffield on 26 Mar, 2010 02:26 PM

    Chris Sheffield's Avatar

    Wow, thanks for the quick turnaround Joel. I'll take a look at this.

  4. 4 Posted by Nikos on 06 May, 2010 11:36 AM

    Nikos's Avatar

    How easy is robot legs to use with the data centric generation stuff in Flash builder 4?

  5. Stray closed this discussion on 10 Feb, 2011 05:11 PM.

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