Error #1006 from a Button function(HELP!)
I created a button and it calls up a MoveClip.
When the MovieClip is played, it contains several layers which tweens into a panel of information located on frame (10).
Attached to that panel of information is a button.
In my ActionScript layer inside the MovieClip on frame (10), I write code for the button to invoke the MovieClip to play through.
Here is the code:
stop();
//import classes so we can have them in our movie
import flash.display.*;
import flash.events.*;
import flash.display.MovieClip;
import flash.display.Sprite;
faucet_mc.addEventListener(MouseEvent.CLICK, faucetCLICK);
function faucetCLICK (event:MouseEvent): void {
faucet_mc.gotoAndPlay(nextFrame);
}

When I hit the button on the right side of teh panel, I get an error message in my output panel:
TypeError: Error #1006: gotoAndPlay is not a function.
at test1_fla::faucet_mc_2/faucetCLICK()[test1_fla.faucet_mc_2::frame10:12]
My goal is to have the MovieClip to play through by fading out the panel of information that ends at frame (18)
and have the MoveClip to start back or stop back at frame (1)
I do not understand why my error message says that gotoAnd Play is not a function.
How can I get this to work?
