fscommand() funktioniert nicht

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?

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
 
Die Verzweigung funktioniert...
Wenn ich statt fscommand() einfach text benutze und in ein textfeld schreibe macht er es auch
 
Rufst Du die Datei auch lokal im Player auf bzw. benutzt Du eine Projektor-exe? In einem Browserfenster funktioniert das Kommando nicht.

Gruß
.
 

Neue Beiträge

Zurück