# Scrolling a movie with xml loaded data

**URL:** https://forum.kirupa.com/t/scrolling-a-movie-with-xml-loaded-data/114852
**Category:** Uncategorized
**Created:** [July 2, 2004, 10:46am UTC](https://forum.kirupa.com/t/scrolling-a-movie-with-xml-loaded-data/114852 "2004-07-02T10:46:28Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![kayluhb](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kayluhb/32/580_2.png) [@kayluhb](https://forum.kirupa.com/u/kayluhb)
#### Post date: [July 2, 2004, 10:46am UTC](https://forum.kirupa.com/t/scrolling-a-movie-with-xml-loaded-data/114852/1 "2004-07-02T10:46:28Z")

</div>

i’m trying to load xml data into a movie clip that can then be scrolled. when it is loaded, the scroller moves the clip’s y position down, and not up. it’s fixed when i add an empty text box over the clip, but i don’t want to do that, because that limits the size of the menu, and makes you scroll through empty space.

any suggestions?

.flas are attatched.

---

<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: [July 2, 2004, 9:36pm UTC](https://forum.kirupa.com/t/scrolling-a-movie-with-xml-loaded-data/114852/2 "2004-07-02T21:36:27Z")

</div>

Change the dy in the prototype function to this:

dy = Math.round(((top+((top-bottom)\*r)-menu.\_y)/speed)\*friction);

one thing i haven’t figured out yet though is the menu returns a few pixels further up than where it started if you drag the reddrag back to the top… but its friday and i’m going home. 🙂

i’ll check back if i figure more out.
