HELP! flash error code #1065 variable TCMText is not defined
Hi,
Im doing a project for uni and trying to create a search bar throughout the flash document for people to find what they are looking for.
Followed a tutorial online step by step and then i get this error. #1065 variable TCMText is not defined.
I'm really a beginner, any help would be so greatly appreciated!
stop();
var i:int = 0;
var names:Array = new Array("Annual Report","annual report");
var frames:Array = new Array("2","2");
text_in = "..."; /*what is wrong with you */
searchbutton.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler);
function fl_MouseClickHandler(event:MouseEvent):void
{
findInArray(text_in.text);
gotoAndStop(frames);
}
function findInArray(str:String):int
{
for(i = 0; i < names.length; i++)
{
if(names == str)
{
return i;
}
}
return 0;
}
it says the issue is on line 7 where i have commented out "what is wrong with you"!
Ive read a lot of things online and i have got it as classic text, which everyone is telling them to do. So quite confused.
If you can, please help me.
Thanks!!!
