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!