| View previous topic :: View next topic |
| Author |
Message |
kate!!
Joined: 04 May 2007 Posts: 3
|
Posted: Tue Jun 12, 2007 1:15 pm Post subject: Scrolling Gallery |
|
|
Hi, Everyone
I am having trouble with using hierarchy in action script. What it is I have a movie clip where the images scroll from right to left and there is a controller which should tell the right (previous) arrow to scroll the other way. The scripting and controller work when on the main scene but in the movieclip it doesn’t work, so I am just assuming it's because I have a movieclip inside a movie clip.
On the left button (which works) I have:
on (rollOver) {
play();
}
on (rollOut) {
stop();
}
On the right button (don't work) I have:
on (rollOver) {
_parent.controlmc.gotoAndPlay(2); - controlmc is the instance name for my controller
}
on (rollOut) {
_parent.controlmc.gotoAndStop(1);
}
it was _root but I changed it to _parent as I thought that might work as it applies to the current timeline – I think
Then I have movieclip inside this movieclip on the stage which is the controller
Inside is:
frame1: stop();
frame2: _root.mc.prevFrame(); - mc is the instances name for the main movieclip which is on the main scene
frame3: gotoAndPlay(2);
So if anyone can solve my conundrum that would be extremely appreciated
Thanks Kate  |
|
| Back to top |
|
 |
|
|
flabbyrabbit 500+ Club

Joined: 25 Jan 2007 Posts: 590 Location: UK
|
Posted: Tue Jun 12, 2007 4:36 pm Post subject: Re: Scrolling Gallery |
|
|
Any chance of you uploading the .fla so i can fiddle around with it or email it to me: nosmo-kings@hotmail.com
Flabby Rabbit |
|
| Back to top |
|
 |
|