Mayday171
Erfahrenes Mitglied
Hallo!
Versuche mich mit Flash an einem Autostart und bin dabei gewesen den Exit Button zu schreiben. Leider will die fscommand nicht so richtig funktionieren.
Kann mir einer erklären warum?
DANKE
MfG
Versuche mich mit Flash an einem Autostart und bin dabei gewesen den Exit Button zu schreiben. Leider will die fscommand nicht so richtig funktionieren.
Kann mir einer erklären warum?
Code:
make_menue = function () {
var anz = menue.length;
for (var i = 1; i<=anz; i++) {
var mc = _root.attachMovie('mc2', 'm'+i, i+1000);
mc.createTextField('txt', 1, 0, 0, 200, 40);// <--------textfeldparameter einstellen
mc.txt.selectable = 0;
mc._x = startx;
mc._y = starty+i*(mc._height+abstand);
mc.txt.text = " "+menue[i-1];
mc.txt.setTextFormat(font2);// <--------textformat auswählen
mc._name = menue[i-1]+"1";
mc.id = menue[i-1];
mc.onPress = function() {
for (var c = 0; c<_root.menue.length; c++) {
_root[menue[ c]+"1"]._x = startx;
}
if (_root[this.id] != undefined) {
this._x == startx ? this._x += 10 : 0;
this.submenue(_root[this.id].length, this._x);
} else {
this.onPress = function() {
if (this._name=="Exit1")
{
_root.ausgabe.text = this._name;//<---buttonaktionen einfügen
}
};
this.onRelease = function() {
if (this._name=="Exit1")
{
fscommand("quit");//<---buttonaktionen einfügen
}
};
}
};
}
};
DANKE
MfG