Problem with personalized scroller

Hey.

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

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

then the actions for the movie clip that contains the button

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:

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

it doesn’t work anymore…

hope i explained it well enough

EDIT- File attachment

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

??
Have a look here
http://www.kirupa.com/developer/actionscript/tricks/root_parent_this.htm

scotty(-:

cheers scotty, it works now :slight_smile:

welcome:thumb:

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


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

=)

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:

it seems that my scrollers scroll too fast…is there a way to make them scroll slower?