What I’ve Learned

•October 24, 2008 • Leave a Comment

Since I still consider myself to be somewhat “new” to the Flex programming language, I am still learning a whole bunch of things. I want to share what I’ve learned, even if some seem like common knowledge. So, here we go.

ViewStacks

For sometime now, I have been working on how to implement a code for a button, that will go through the different pages of my viewstack. I have finally figured it out. I admit that when I figured it out, I felt kinda stupid because it seems so simple. It’s just a matter of a very simple line.

...
<mx:Button id="button1" click="vs.SelectedIndex=1"

So here if we have a simple ViewStack, with the ID of “vs”, we can tell the button, that on the click, call the second item in my ViewStack (Assuming that you have at least 2 items, with the first one defaultly being numbered 0). And that solves the problem!

A little bit about me

•October 22, 2008 • Leave a Comment

My name is Karl Monson, and I am a student rep for Adobe, using Flex. I decided to create this blog in order to help share my knowledge, and love for this program. Developing RIA’s and Apps is definately one of my favorite pass-times.