PDA

View Full Version : scroll function within a movieclip


dominick100
03-27-2003, 07:18 PM
I'm trying to reuse a pair of scroll buttons in multiple places, so I'm using variables instead of just the scrollable text field instance name.

For example, on 1 button, I jump to a particular frame, and also have the action:
_root.currentepisode = _root.empty.season1.epi1
(_root.empty.season1.epi1 is the location of the scrollable text field)


Then, on the buttons that will control the scrolling, I have placed a movieclip in the Over state (so it will constantly scroll on the mouse over), with the actions
_root.currentepisode.scroll += 1

This doesn't work. If I remove the variable on the button, and change it to
_root.empty.season1.epi1.scroll +=1
It works fine, but this would require me having 20 different scroll buttons (since I'm not placing the actions on the button, but on a movieclip WITHIN the button).

I have a feeling I'm making a simple mistake, possible with my syntax. I'd appreciate any help.

Thanks.