I am not clear but it appears you have a Button symbol and the gotoAndPlays
are trying reference it. A Button symbol shows its frames automatically and
you cannot address the frames with AS such as gotoAndPlay.
You can however change the instance behavior of a Button to a MovieClip or
you could change the library behavior to a MovieClip. Once a MovieClip you
could do the following assuming buttonover is the instance name of the
MovieClip object.
buttonover.onRollOver = function()
{
this.gotoAndPlay(2);
}
buttonover.onRelease = buttonover.onRollOut = function ()
{
this.gotoAndPlay(3);
}
--
Lon Hosford
www.lonhosford.com May many happy bits flow your way!
[quoted text, click to view] "pantherdev" <webforumsuser@macromedia.com> wrote in message
news:dr3b02$36j$1@forums.macromedia.com...
Hello,
I am trying to figure out how to keep the release state of a button the
same
after being clicked on so far i have created a(n) Up, Over and Down state
plus
entered a script that would allow text to be displayed as the pointer is
passed
over the button as follows: on(rollOver){
tellTarget("buttonover"){
gotoAndPlay(2);
}
}
on(release, rollOut){
tellTarget("buttonover"){
gotoAndPlay(3);
}
}
If there is anyone who can assist me in finding a solution for what seems
to
be a simple case please assist.
Thank you!