ViNc3
1
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
system
2
onClipEvent (enterFrame) {
if (clicked) {
_parent.text.scroll -= 1;
}
}
??
Have a look here
http://www.kirupa.com/developer/actionscript/tricks/root_parent_this.htm
scotty(-:
system
3
cheers scotty, it works now 
system
5
you could add a releaseOutside to the release. It will make the scroller more user friendly 
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:
system
7
it seems that my scrollers scroll too fast…is there a way to make them scroll slower?