Hi I keep getting this error and have no idea and have had no luck attempting to fix it.
Basically I have a movieclip with a load of buttons in it which will all eventually lead to different movieclips. When a button is pressed I want a movieclip to appear and play. The movieclip is on the stage.
The problem i have is that when i click the link, this error message appears in the Output tab:
TypeError: Error #1006: value is not a function.
at plumonicconsonants_fla:
ulmonicconsonants_1/buttonClick()
So far my code is
Code:
import flash.events.MouseEvent;
pbtn.addEventListener(MouseEvent.CLICK,buttonClick);
function buttonClick(e:Event):void
{
gotoAndStop("pmovie" (5));
pbtn.enabled = true;
Any help would be greatly appreciated.
Also any simple methods of achieving my aim other than this method would be greatly received.
Thank you