| |||||||
Du magst keine Werbung? Wir auch nicht!
Einfach registrieren und die Werbung ist weg. Diese Nachricht sehen nur nicht registrierte Nutzer.
![]() |
| | LinkBack | Themen-Optionen | Ansicht |
| | #1 (permalink) |
| Neuer User Registriert seit: Nov 2005
Beiträge: 28
|
hallihallo ![]() ich hab ein problem mit dynamisch erstellten buttons, vor allem dem aktiv-status. an einem bestimmten punkt werden eine bestimmte Anzahl (Variable Dia) buttons (aktuell_mc) geladen. Code: aktuelleDias = function ()
{
var buttonXposition:Number = 120;
var buttonYposition:Number = 230;
var Qabstand:Number = 25;
for (dia_nummer = 1; dia_nummer <= dias; dia_nummer++)
{
attachMovie ("aktuell_mc","aktuell" + dia_nummer,_root.getNextHighestDepth ());
_root["aktuell" + dia_nummer]._x = buttonXposition;
_root["aktuell" + dia_nummer]._y = buttonYposition;
_root["aktuell" + dia_nummer].thumb = new Array (1);
_root["aktuell" + dia_nummer].thumb[1] = dia_nummer;
_root["aktuell" + dia_nummer].aktuell_nummer.text = dia_nummer;
buttonXposition += Qabstand;
trace ("dia_nummer " + dia_nummer);
}
}; Code: stop();
this.active_mc._visible = false;
this.onRelease = function() {
_root.pic1.loadMovie("fla"+ (thumb[1] + (thumb[1] -1)) +".jpg");
_root.pic2.loadMovie("fla"+ (thumb[1] + (thumb[1] -1) +1) +".jpg");
_root.texte.attachMovie("text"+thumb[1],"textfeld"+thumb[1], 1);
_root.gotoAndPlay ("schleife2");
_root.i = thumb[1]*2;
_root.k = thumb[1];
this.gotoAndStop(4);
this.active_mc._visible = true;
}
this.onPress = function (){
}
this.onRollOver = function() {
if (1){
this.gotoAndStop(3);
}
}
this.onRollOut = function() {
if (4){
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
} this.onPress = function (){ _root["aktuell" + dia_nummer].active_mc._visible = false; } erstmal jeden aktiven Satus aller array-buttons über root ausschalte und dann wird mit onRelease der speziell gedrückte Button wieder aktiv geschalten. klappt aber nicht. Gibt es einen Möglichkeit oder denk ich grundsätzlich falsch? ich hoff das ist verständlich? ![]() vielen dank LL. Geändert von lexxlevi (19-06-2011 um 15:33 Uhr) |
| | |
![]() |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | |
| |
Ähnliche Themen | ||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| auf dynamisch erstellten mc zugreifen | terminator60000 | ActionScript 3 | 5 | 22-02-2011 08:36 |
| mit dynamisch erstellten mc´s weiterarbeiten | Juli_a | ActionScript 3 | 4 | 14-01-2011 10:53 |
| <br> in dynamisch erstellten textfeld | stern1001 | Flash CS3 Professional | 5 | 23-09-2008 14:45 |
| getBounds-Problem bei dynamisch erstellten Movieclip | pejot | ActionScript 1 | 8 | 07-08-2005 19:28 |
| Problem bei dynamisch erstellten MovieClips | Novanic | ActionScript 1 | 3 | 22-03-2005 14:41 |