# Problem with personalized scroller

**URL:** <https://forum.kirupa.com/t/problem-with-personalized-scroller/115286>\
**Category:** Uncategorized\
**Created:** [July 7, 2004, 10:56am UTC](https://forum.kirupa.com/t/problem-with-personalized-scroller/115286 "2004-07-07T10:56:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ViNc3](https://avatars.discourse-cdn.com/v4/letter/v/b487fb/32.png) [@ViNc3](https://forum.kirupa.com/u/ViNc3)\
**Post date:** [July 7, 2004, 10:56am UTC](https://forum.kirupa.com/t/problem-with-personalized-scroller/115286/1 "2004-07-07T10:56:18Z")

</div>

Hey.

I have copied a button from the common libraries and put it in a movie clip. These are the actions for the button:

```auto
on (press) {
clicked = true;
}
on (release) {
clicked = false;
}

```

then the actions for the movie clip that contains the button

```auto
onClipEvent (enterFrame) {
if (clicked) {
_root.text.scroll-=1;
}
}

```

I test the movie and it works, the text scrolls.  
But when i open another swf (intro.swf) which loads the swf with the scrollable text:

```auto
on (release) {
_root.container.loadMovie("scroll.swf");
}

```

it doesn’t work anymore…

hope i explained it well enough

EDIT- File attachment

---

<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 7, 2004, 11:10am UTC](https://forum.kirupa.com/t/problem-with-personalized-scroller/115286/2 "2004-07-07T11:10:09Z")

</div>

```auto
onClipEvent (enterFrame) {
	if (clicked) {
		_parent.text.scroll -= 1;
	}
}

```

??  
Have a look here  
[http://www.kirupa.com/developer/actionscript/tricks/root\_parent\_this.htm](http://www.kirupa.com/developer/actionscript/tricks/root_parent_this.htm)

scotty(-:

---

<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 7, 2004, 11:18am UTC](https://forum.kirupa.com/t/problem-with-personalized-scroller/115286/3 "2004-07-07T11:18:39Z")

</div>

cheers scotty, it works now 🙂

---

<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 7, 2004, 11:51am UTC](https://forum.kirupa.com/t/problem-with-personalized-scroller/115286/4 "2004-07-07T11:51:16Z")

</div>

welcome:thumb:

---

<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 7, 2004, 11:58am UTC](https://forum.kirupa.com/t/problem-with-personalized-scroller/115286/5 "2004-07-07T11:58:01Z")

</div>

you could add a releaseOutside to the release. It will make the scroller more user friendly 🙂

```auto

  on (press) {
 clicked = true;
 }
 on (release,releaseOutside) {
 clicked = false;
 }
 

```

=)

---

<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 7, 2004, 3:34pm UTC](https://forum.kirupa.com/t/problem-with-personalized-scroller/115286/6 "2004-07-07T15:34:25Z")

</div>

true…i can imagine what would happen if the person released outside without that actionscript added…

i’ve decided to use rollover and rollout…but i’ll keep in mind the next time i use press and release :thumb:
