Click to See Complete Forum and Search --> : Problem with single button using gotoAndPlay twice on one MovieClip


noelsy
05-22-2008, 01:50 PM
Somewhat familiar with basic actionscripting, but ran into a road block.
have multiple buttons within one movie clip. Want each button to talk to the corresponding movie clip.
The goal is to onRelease of a button gotoAndPlay a frame in a named movie clip.
Then use onRelease again to gotoAndPlay a different frame of the same movie clip.

Basically, on each movie clip is a single layer with one timeline to, a stop of frame 1, a stop on frame 5 and a stop on frame 9.
From frame 2-5 fades the image in to visiblity, and from frames 6-9 fades the image out.

Looking to have the onRelease used twice on each button, each time playing a different frame.

Right now I have it so when you mouseOver it fades in and when you onRelease of the same button it fades out.

Any help or suggestions would be greatly appreciated. Thanx!

Link to file is at: http://www.noelsynoel.com/standingheronpress/animals.html

Eye for Video
05-22-2008, 06:00 PM
Well I think I have a vague understanding of what you are trying to do.
Looking to have the onRelease used twice on each button, each time playing a different frame.
Perhaps this could be done by placing the button itself in two different frames so that you could give it two different instance names. The button in frame 10 (for example), instance name “this” onRelease that does this (or whatever) and also goes to and stops (gotoAndStop) in frame 11, where the button instance name is “that” which onRelease does that and also resets the button by going to and stopping (gotoAndStop) back in frame 10.
Same button, two instance names, so two onRelease actions available, kind of a toggle between the two.
Good Luck,
Eye for Video
www.cidigitalmedia.com