codice:
onClipEvent (enterFrame) {
	this.onPress = function() {
		if (this.text1="on") {
			this.text1 = "off";
			myFormat = new TextFormat();
			myFormat.color = "0xff0000";
			this.text.setTextFormat(myFormat);
		} else if (this.text1="off") {
			this.text1 = "on";
			myFormat1 = new TextFormat();
			myFormat1.color = "0x00ff00";
			this.text.setTextFormat(myFormat1);
		}
	};
}
Va solo se this.text1 è uguale a "on";
se poi ci ripigio dato che è diventato off non ridiventa on.
Eppure è perfetto!!!