tags:

views:

399

answers:

1

Hello

I have canvas in my Flex project. Canvas have one child elements.

  1. I mode the element to y=500 and see the scroller in my canvas

  2. I drag scroller to bottom to see my element

  3. I move element to y=200

  4. After that the scroller is still on the same place. How I can update the scroller and move it to the top?

Thanks

A: 

Please, provide the code you're trying to use. The following code behaves correctly (scrollbar disappears after clicking the label):

<mx:Canvas height="300" width="300">
    <mx:Label id="tl" text="Moved label" y="500" click="tl.y=200;" />
</mx:Canvas>
Hrundik
Thanks a lot for sample. It realy help me. I will vote for your answer as soon as I get 15 reputation
Vladimir
glad it helped :)
Hrundik