I want to be able to access a private var from inside a movieclip, does anyone know how I would go about doing that?
I want to be able to access my public function counter(numPoints:int)
that is inside the ActionScript class file from inside a movieclip on my main swf. Whenever I try to access it, it comes up as undefined, but how to access it from inside the movieclip is the problem(I know the variables are all defined properly because it works when it isn't inside of a movieclip). Any idea are appreciated ^^;, Thanks!
unlock3.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_3);
function fl_ClickToGoToAndStopAtFrame_3(event:MouseEvent):void
{
MovieClip(parent).gotoAndStop(8);
addScore(1);
}
I want to make it so the addScore function works properly, but it always comes out undefined. This script here is inside of the movieclip. The navigation works fine, but I don't know how to target the score.