prova questo

codice:
onClipEvent (enterFrame) {
	cerca = _root.Flag.split(",");
	for(i = 0;i < cerca.length; i ++){
	if (cerca[i] == this._name) {
		_visible = false;
	}
	}
	if (this.hitTest(_root.mario)) {
		if (_visible){
			_root.Flag = _root.Flag + "," + this._name;
			_root.punti += 10;
			_visible = false;
		}
	}
}