Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 30-03-2006, 01:30   #1 (permalink)
Alter User
 
Benutzerbild von loop20
 
Registriert seit: Feb 2004
Beiträge: 132
MC's löschen

eigentlich müsste er doch die MC's "test" löschen... wieso geht das nicht? :/

PHP-Code:
this.button_m1.onPress = function() {
    
removeMovieClip(test);
     
this.createEmptyMovieClip("m_con",2);
    
this.m_con.attachMovie("content1","test",2,{_x:10,_y:30});
};

this.button_m2.onPress = function() {   
    
removeMovieClip(test);
    
this.createEmptyMovieClip("m_con",2);
    
this.m_con.attachMovie("content2","test",2,{_x:10,_y:30});
};

this.button_m3.onPress = function() {   
    
removeMovieClip(test);
    
this.createEmptyMovieClip("m_con",2);
    
this.m_con.attachMovie("content3","test",2,{_x:10,_y:30});
};

this.bla.onPress = function() {   
    
removeMovieClip("this.test")
}; 
anbei der komplette script:
Angehängte Dateien
Dateityp: zip test.zip (8,7 KB, 1x aufgerufen)
__________________
Learning by Doing
loop20 ist offline   Mit Zitat antworten
Alt 30-03-2006, 08:16   #2 (permalink)
.
 
Registriert seit: May 2003
Ort: bayern
Beiträge: 1.117
so wie du das schreibst kann das nicht funktionieren, was soll denn 'test' sein?
this.button_m1.m_con.test oder this.button_m2.m_con.test ...

versuche es mal so:
PHP-Code:
this.button_m1.onPress = function() { 
    
removeMovieClip(test); 
     
test this.createEmptyMovieClip("m_con",2); 
    
this.m_con.attachMovie("content1","test",2,{_x:10,_y:30}); 
}; 

this.button_m2.onPress = function() {    
    
removeMovieClip(test); 
    
test this.createEmptyMovieClip("m_con",2); 
    
this.m_con.attachMovie("content2","test",2,{_x:10,_y:30}); 
}; 

this.button_m3.onPress = function() {    
    
removeMovieClip(test); 
   
test this.createEmptyMovieClip("m_con",2); 
    
this.m_con.attachMovie("content3","test",2,{_x:10,_y:30}); 
}; 
__________________
[mooseMash]
mooseMash ist offline   Mit Zitat antworten
Alt 30-03-2006, 16:07   #3 (permalink)
Alter User
 
Benutzerbild von loop20
 
Registriert seit: Feb 2004
Beiträge: 132
so weit hab ich jetzt:
aber nun soll der "content" an frame 11 weiterspielen bis zum nächsten
"stop(); wenn ich button "bla" drücke:

PHP-Code:
content_vor = function (content_m) {
            
_root.createEmptyMovieClip("m_con"2);
            
_root.m_con.attachMovie(content_m,"content",2,{_x:10,_y:30});
};


this.button_m1.onPress = function() {
    
content_vor("content1");
};

this.button_m2.onPress = function() {   
    
content_vor("content2");
};

this.button_m3.onPress = function() {   
    
content_vor("content3");
};


this.bla.onPress = function() {   
    
_root.content.gotoAndPlay(11);
}; 
__________________
Learning by Doing
loop20 ist offline   Mit Zitat antworten
Alt 30-03-2006, 16:24   #4 (permalink)
................
 
Benutzerbild von Der Frager
 
Registriert seit: Jun 2004
Beiträge: 15.890
Wieso erstellst du denn einen leeren MC zum Attachen? Und falls das irgendeinen tieferen Sinn hat, musst du
PHP-Code:
_root.m_con.content.gotoAndPlay(11); 
benutzen
__________________

ternärer Konditionaloperator

+++ Bitte keine Privat-Nachrichten bezüglich Flashfragen! +++
Der Frager ist offline   Mit Zitat antworten
Alt 30-03-2006, 16:26   #5 (permalink)
Alter User
 
Benutzerbild von loop20
 
Registriert seit: Feb 2004
Beiträge: 132
juhu,
thx endlich funktioniert es! :>
__________________
Learning by Doing
loop20 ist offline   Mit Zitat antworten
Antwort

Lesezeichen

Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks sind an
Pingbacks sind an
Refbacks sind an



Alle Zeitangaben in WEZ +1. Es ist jetzt 22:37 Uhr.

Domains, Webhosting & Vserver von Host Europe
Unterstützt das Flashforum!
Adobe User Group


Copyright ©1999 – 2012 Marc Thiele