# Invalid metadata

**URL:** <https://forum.kirupa.com/t/invalid-metadata/309249>\
**Category:** Uncategorized\
**Created:** [May 10, 2010, 10:12pm UTC](https://forum.kirupa.com/t/invalid-metadata/309249 "2010-05-10T22:12:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vfistri1](https://avatars.discourse-cdn.com/v4/letter/v/d2c977/32.png) [@vfistri1](https://forum.kirupa.com/u/vfistri1)\
**Post date:** [May 10, 2010, 10:12pm UTC](https://forum.kirupa.com/t/invalid-metadata/309249/1 "2010-05-10T22:12:03Z")

</div>

i have 3 movieclips(they should serve as buttons) located in main timeline ( called ‘button1’ ‘button2’ ‘button3’)  
and 2 movielcips (‘content’ ‘change’)  
bascially i know this proabbably aind the perfect way to do things but what i really dont understand is why am i getting this 2 errors in line 23 , so can you pls help me out?  
it says the errors are in this line:  
[“button” + broj].removeEventListener(MouseEvent.CLICK, [“function” + broj]);

the errors i get are: 1084:syntax error, expecting identifier before dot  
1064:invalid metadata

anyway i really need to fix that soon so all the help is more than welcome

full code is:

```auto

import fl.transitions.Tween;
import fl.transitions.easing.*;
stop();

change_mc.addEventListener(Event.ENTER_FRAME, changefunction);
var number:int = 1;
changefunction();

button1.addEventListener(MouseEvent.CLICK, function1);
button2.addEventListener(MouseEvent.CLICK, function2);
button3.addEventListener(MouseEvent.CLICK, function3);

//trigers everyframe to check if efect is on 18 frame than slike goes //nextFrame
function changefunction(event:Event):void{
	if (change_mc.currentFrame == 15 ){
	var dodatak:int = number+1;
	content_mc.gotoAndStop(dodatak);
	}
		if (change_mc.currentFrame == 34 ){
	var myTweenY:Tween = new Tween(["button" + number], "y", Strong.easeOut , 247.95, 32.9, 9, false);
	}
	change_mc.removeEventListener(Event.ENTER_FRAME, changefunction);
	["button" + number].removeEventListener(MouseEvent.CLICK, ["function" + number]);	
}

function function1(event:MouseEvent):void {
	var myTweenY:Tween = new Tween(["button" + number], "y", Strong.easeOut , 32.9, 247.95 , 6, false);
	number = 1 ;
	changefunction();
}

function function2(event:MouseEvent):void {
	var myTweenY:Tween = new Tween(["button" + number], "y", Strong.easeOut , 32.9, 247.95 , 6, false);
	number = 2 ;
	changefunction();
}

function function3(event:MouseEvent):void {
	var myTweenY:Tween = new Tween(["button" + number], "y", Strong.easeOut , 32.9, 247.95 , 6, false);
	number = 3 ;
	changefunction();
}

```
