# \*\*\* scrollpane component-trouble \*\*\*

**URL:** <https://forum.kirupa.com/t/scrollpane-component-trouble/5281>\
**Category:** flash\
**Created:** [September 6, 2002, 2:40pm UTC](https://forum.kirupa.com/t/scrollpane-component-trouble/5281 "2002-09-06T14:40:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stanley](https://avatars.discourse-cdn.com/v4/letter/s/7ab992/32.png) [@Stanley](https://forum.kirupa.com/u/Stanley)\
**Post date:** [September 6, 2002, 2:40pm UTC](https://forum.kirupa.com/t/scrollpane-component-trouble/5281/1 "2002-09-06T14:40:40Z")

</div>

okay, I have another one…

myScrollPane.getScrollPosition()

this returns an object :  
if I use trace I get [object, object], no values.

I need a value that I can use with:

myScrollPane.setScrollPosition()

Can anyone clarify the use of this code? I am not much of a programmer…

I just want my movie, at certain moments, to remember the position of my scrolled movie in the scrollpane component, so users can go back and don’t have to start scrolling from the top.

Stanley

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 1, 2002, 10:50pm UTC](https://forum.kirupa.com/t/scrollpane-component-trouble/5281/2 "2002-11-01T22:50:47Z")

</div>

Stanley,  
I just figured it out.

myScrollPane.getScrollPosition().y;

and

myScrollPane.getScrollPosition().x;

will give you the results.  
-mj
