I have a Blackberry playbook Flex app that has a form. There is a TextArea input that when "focused in", pushes a new view with a full screen text area. When that full screen text area is filled, a button is clicked and the screen is popped to the original form...
The problem: When I pop this 2nd screen, it returns to the first form at the top, not retaining the view position we were at on the page... is there anyway to return to the part of the form we were editting?
You can push the edit-view with a parameter [1] that contains the last scroll-coordinates and when poping [2] the view you could set these coordinates as return value, so the first form-view can scroll back down [3].
[1] The second argument of pushView
takes any object:
navigator.pushView(EditView, {position:"someValue"});
[2] Override createReturnObject
to create a return object when poping a view:
public function createReturnObject():Object
[3] in the viewActivate eventhandler the data
-property will hold your pushed object.