I am developing a mobile project in Flash builder using flex 4.5. I am very new to flex, with some background in Obj-C.
Current Setup:
I am passing the text property of a text input component to a second view via navigator.pushview{view.Someview, data}
public function doSomething():void{
navigator.pushView(Session_View, timeInput.text);
}
This successfully passes the text I put into the textinput to the Session_View instance and I can display that text in a label in the mxml; however, I would like to take the text passed and convert it to an integer to use in my logic.
Within Action Script I have tried parseInt() function with no luck. I have also tried to assign data to a variable in actionscript with no luck.
Does any flex ninja out there know what I am doing wrong or a best practices way to pass a simple string between views in flex mobile and then convert that string to an int?
Thanks