Reputation:
I have a Flex component that is very long. I want to add a save button in the bottom of component. when i click on save button i am changing the state where it displays another component. Do anyone know which function I can use to move a component(screen) from bottom to top? HTML have a Anchor Object to do the same thing.Please give me a idea how to do this in Flex.
Thanks
Upvotes: 0
Views: 291
Reputation: 312
If I understood it right, the save button is changing the state of another component. If you want to move the component itself, use the X and Y properties to achieve that. You also can use effects to smooth it out. If that's not what you mean, please clarify the "screen" component.
Upvotes: 0
Reputation: 8403
You need to set property "verticalScrollPosition" to "0" to whatever the component that has the Scroller (the scroll bar).
Upvotes: 1