Buttons funktionieren nach abspielen nicht mehr [Flash 10]
| Beiträge: 1 Registriert: Dec 2009
| 28.12.2009, 16:17
Hallo, ich habe folgendes Problem: ich habe 3 Buttons, die einen Text in ein Textfeld laden, nach Anklicken der Buttons ändern diese ihr Aussehen. Klappt eigentlich soweit, nur kann man leider die Buttons nur einmal anklicken, danach verlieren sie Ihre Funktion.
Ich gebe mal meinen Code mit:
ActionScript:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | mcButton1.Button1.onRelease = function() {
mcCellobauButton.gotoAndStop(2);
mcRepertoireButton.gotoAndStop(1);
mcInterpretenButton.gotoAndStop(1);
loadText = new LoadVars();
loadText.load("text1.txt");
loadText.onLoad = function(success) {
if (success) {
celloText.html = true;
celloText.htmlText = this.myText;
}
};
}
mcButton2.Button2.onRelease = function() {
mcInterpretenButton.gotoAndStop(2);
mcCellobauButton.gotoAndStop(1);
mcRepertoireButton.gotoAndStop(1);
loadText = new LoadVars();
loadText.load("text2.txt");
loadText.onLoad = function(success) {
if (success) {
celloText.html = true;
celloText.htmlText = this.myText;
}
};
}
mcButton3.Button3.onRelease = function() {
mcRepertoireButton.gotoAndStop(2);
mcCellobauButton.gotoAndStop(1);
mcInterpretenButton.gotoAndStop(1);
loadText = new LoadVars();
loadText.load("text3.txt");
loadText.onLoad = function(success) {
if (success) {
celloText.html = true;
celloText.htmlText = this.myText;
}
};
}
|
Die Buttons selbst befinden sich, wie man vielleicht sehen kann, in einem Movieclip mit zwei Schlüsselbildern, 1 enthält den anklickbaren Button, 2 den veränderten, nicht anklickbaren Button.
Hoffe, es kann mir das jemand helfen - ansonsten einen guten Rutsch!! :-)
schlydi | |
| Ähnliche Beiträge zum Thema | 13.09.2022 - Rennier 08.05.2022 - Indy_Crossover 13.09.2021 - Willisquirion 28.07.2022 - TateBauch |
|
Flashhilfe.de Flash Platform Tipps & Tutorials Flash Platform Andere Programmiersprachen Jobangebote Diskussionen
Flashhilfe News
Regeln & Bedingungen
|