The Cooking Channel’s Eat Street in our Parking Lot

Ian Kleinman of the Inventing Room

Ian Kleinman of the Inventing RoomA long time friend of mine, Ian Kleinman is going to be featured on the Cooking Channel’s Eat Street TV show.  If you want some awesomely-crazy-wacked-out snacks, to show your support for Ian, or just want to get on TV, come hang with the Inventing Room and the Realeyes crew. Here the menu that Ian has creaeted for the cart tomorrow:

  • Apple pie “Koolaid”
  • Hot fudge ice cream, espresso fudge cookie
  • Homemade whipped marshmallow
  • Strawberry yuzu sorbet with frozen olive oil
  • Popcorn space foam
  • Miracle fruit tasting
  • Creme brulee with banana foster
  • Coconut ice cream with brown sugar
  • Braised pineapple and raspberry bubbles

Ian & The Eat Street crew will be in the parking lot (behind our offices at 940 Logan) filming Ian and his inventive cart Tuesday March 31st from 8:30 am until 3:30 pm.

Mobile Flex: View Data

From the previous post you should know how to navigate from 1 view to the next using the ViewNavigator.  Now, you want some data in that view right? No problem, this is where the View object’s ‘data‘ property comes into play. Setting the data property is accomplished by passing the data object, in addition to the View’s class name, into the pushView() method on the navigator object.

Example:

[as3]navigator.pushView(MyNewView, dataObject);[/as3]

This effectively calls the setting for the data property of the new View (MyNewView) object that is created.

Managing View Data

You could work with the data property on the View object directly. For instance, if the data object passed into the View via the pushView() method was a simple user object that contained a name property, you could bind the name property to a label control.

Example:

[xml]<s:Label id="name_lbl" text="{data.name}" />[/xml]

Overriding the Data Property Setter

Usually though, you’d want to override the setter for the data property. Then you can type your object and work with it in a better manner.

Example:

[as3]protected var user:User;
override public function set data(value:Object):void
{
super.data = value;
user = value as User;
}[/as3]

[xml]<s:Label text="{user.name}" />[/xml]

So now we’ve got the data in the view. The next step is to manage the state of each view. With mobile apps you can’t count on the view staying around, so we’ll need to keep a tight control on the state of each view. That way we can bring the user right back where they expect to be when they come back to the app after a call for example. In the next post we’ll look into how to do this. Stay tuned.

This article has also been posted on the Realeyes website.