if tryed everything
its just seems nothing works maybe someone can help me. please!!!
frame 1:
function genKat(theString)
{
temp = theString.split("|");
if (temp[0] != “” && temp[0] != curHauptKategorie)
{
hauptKategorien[hauptKategorien.length] = temp[0];
curHauptKategorie = temp[0];
}
else
{
theString = curHauptKategorie + theString;
} // end else if
return (theString);
} // End of the function
function getUnterkategorieAsString()
{
var _loc2 = new Array();
pattern = hauptKat.selValue + “|”;
for (var _loc1 = 0; _loc1 < ITEM.length; ++_loc1)
{
if (ITEM[_loc1].indexOf(pattern) == 0)
{
_loc2.push(ITEM[_loc1]);
} // end if
} // end of for
return (_loc2);
} // End of the function
function getUnterkategorie()
{
uas = getUnterkategorieAsString();
if (uas.length > 1 && vorhang.closed == true)
{
vorhang.play();
} // end if
theResult = new Array();
for (i = 0; i < uas.length; i++)
{
temp = uas*.split("|");
theResult* = temp[1];
} // end of for
SB.gotoAndStop(1);
return (theResult);
} // End of the function
function getScores(index)
{
if (SB.visible != true)
{
} // end if
if (ScoreBoard.visible != true)
{
ScoreBoardi.play();
} // end if
temp = getUnterkategorieAsString()[index].split("|");
hauptkategorie = temp[0];
vergehen = temp[1];
SBInfo = hauptkategorie + " - " + vergehen[1];
punkte = temp[3];
bußgeld = temp[2] + " EURO";
fahrverbot = temp[4];
if (fahrverbot == 0)
{
fahrverbot = “keins”;
}
else if (fahrverbot == 1)
{
fahrverbot = fahrverbot + " Monat";
}
else
{
fahrverbot = fahrverbot + " Monate";
} // end else if
SB.gotoAndPlay(2);
} // End of the function
hauptKategorien = new Array();
xmlconnector.getFile(“config.xml”);
for (i = 0; i < ITEM.length; i++)
{
ITEM* = genKat(ITEM*);
} // end of for
closed = true;
stop ();
closed = false;
stop ();
var style_fmt = new TextFormat();
style_fmt.font = “Arial (embedded)”;
style_fmt.size = 12;
style_fmt.color = 16777215;
style_fmt.leading = 1;
options = parent.options;
step = 4;
for (i = 0; i < options.length; i++)
{
curName = "option" + i;
attachMovie(“OPTION”, curName, options.length - i);
var curOption = eval(curName);
curOption.createTextField(“textLable”, 0, -225, 3, 420, 17);
curOption.textLable.embedFonts = true;
curOption.textLable.setNewTextFormat(style_fmt);
curOption.textLable.selectable = false;
curOption.textLable.multiline = true;
curOption.textLable.wordWrap = true;
curOption.textLable.autoSize = “left”;
curOption.textLable.antiAliasType = “advanced”;
curOption.textLable.text = _parent.theLable*;
curHeight = Math.round(curOption.textLable._height + 1);
curOption.BUTTON._height = curHeight + 1;
set(curName + “._x”, -1);
set(curName + “._y”, step);
set(curName + “.index”, i);
step = step + (curHeight - 1);
} // end of for
foot._y = step - 6;
stop ();
function setVariable(index)
{
selLabel = theLable[index];
selValue = theValue[index];
optionlist.selector._y = optionlist.step * index;
optionlist._visible = false;
_root.unterKat.gotoAndPlay(“init”);
gotoAndStop(2);
} // End of the function
options = _root.hauptKategorien;
theLable = new Array(options.length);
theValue = new Array(options.length);
for (i = 0; i < options.length; i++)
{
tmp = options*.split("=");
theLable* = tmp[0];
if (tmp.length == 2)
{
theValue* = tmp[1];
continue;
} // end if
theValue* = tmp[0];
} // end of for
setVariable(initIndex != null ? (initIndex) : (0));
stop ();
optionlist._visible = true;
stop ();
function setVariable(index)
{
selLabel = theLable[index];
selValue = theValue[index];
selIndex = index;
_root.getScores(index);
} // End of the function
options = _root.getUnterkategorie();
theLable = new Array(options.length);
theValue = new Array(options.length);
for (i = 0; i < options.length; i++)
{
tmp = options*.split("=");
theLable* = tmp[0];
if (tmp.length == 2)
{
theValue* = tmp[1];
continue;
} // end if
theValue* = tmp[0];
} // end of for
optionlist.selector._visible = false;
if (options.length == 1)
{
stop ();
optionlist._visible = false;
} // end if
stop ();
visible = false;
mouseIsOver = false;
stop ();
temp = _root.getUnterkategorieAsString()[_root.unterKat.selIndex].split("|");
hauptkategorie = temp[0];
vergehen = temp[1];
SBInfo = hauptkategorie + " - " + vergehen[1];
punkte = temp[3];
bußgeld = temp[2] + " EURO";
fahrverbot = temp[4];
if (fahrverbot == 0)
{
fahrverbot = “keins”;
}
else if (fahrverbot == 1)
{
fahrverbot = fahrverbot + " Monat";
}
else
{
fahrverbot = fahrverbot + " Monate";
} // end else if
visible = true;
stop ();
butons:
on (press)
{
_parent._parent.setVariable(index);
}
on (press)
{
optionlist._visible = true;
this.gotoAndPlay(2);
}
on (rollOver)
{
theBackground.useHandCursor = false;
mouseIsOver = true;
}
on (release)
{
gotoAndStop(1);
}