Problem with controlling movieclip from _root level.
January 6th, 2009
- "ButtonsClip" (movie clip) with thumbnails as buttons.
- "ScrollClip" (movie clip) containing "ButtonsClip" as an animated tween moving right to left, with a mask to reveal 3 buttons at a time.
On main stage i placed "ScrollClip". I also have a symbol with instance "container", when you click on a button it loads that .swf file into the container area.
This seems to work so far. But what i also want to do is to stop the scroll moving when you rollover that area and then continue scrolling when you rollout. I tried doing onRollOver and stop(); on the mask area in "ScrollClip" but the problem is that it then seems to stop the animation as well as the ability to click the button and launch the .swf file into the container...
help please!
scotty(-:
scotty(-:
my only problem is i cant seem to figure out how to get it scrolling again when i move my mouse out of the movie clip...?
one other question - instead of it grinding to a hault, could i make it slow down to a stop?
code:
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
stop();
}
}
Just letting you know.
scotty(-:
Instead of the rollover/rollout actions on ScrollClip use hitTest(), this will keep your thumbnails working.
scotty(-:
#If you have any other info about this subject , Please add it free.# |