Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 01-04-2007, 16:08   #1 (permalink)
Neuer User
 
Registriert seit: Aug 2004
Beiträge: 7
Wie mach ich aus Flash5-Script Flash6-Script ??

Hallo zusammen,

ich hab das Problem, das ich einen Effekt im Flash5-Actionscript1 hab und diesen in einen Hauptmovie laden muss, der unter Flash6-Actionscript2 veröffentlicht wurde.

Ich vermute, das es an dem "prototype" liegt.
Wie kann ich diese Zeile umschreiben, sodas es funzt ??

Code:
movieclip.prototype.sinusInit = function () {
	_visible=0;
Wäre über Hilfe echt dankbar...

Gruß
Micha
ghazii ist offline   Mit Zitat antworten
Alt 01-04-2007, 16:10   #2 (permalink)
................
 
Benutzerbild von Der Frager
 
Registriert seit: Jun 2004
Beiträge: 15.890
Mal so testen:
PHP-Code:
MovieClip.prototype.sinusInit = function () {
    
_visible=0;

...obwohl Flash6 eigentlich auch noch nicht caase-sensitive war!?
__________________

ternärer Konditionaloperator

+++ Bitte keine Privat-Nachrichten bezüglich Flashfragen! +++
Der Frager ist offline   Mit Zitat antworten
Alt 01-04-2007, 16:22   #3 (permalink)
Neuer User
 
Registriert seit: Aug 2004
Beiträge: 7
Das hat leider nicht geholfen

Ich hab mal die .fla angehängt.

wie gesagt:
als Flash5 geht´s als Flash 6 nicht

Geändert von ghazii (08-04-2007 um 18:05 Uhr)
ghazii ist offline   Mit Zitat antworten
Alt 01-04-2007, 16:56   #4 (permalink)
................
 
Benutzerbild von Der Frager
 
Registriert seit: Jun 2004
Beiträge: 15.890
_parent ohne this davor ist meistens mist...
PHP-Code:
stop();
fscommand("allowscale"false);
MovieClip.prototype.sinusInit = function() {
    
this._visible 0;
    
startx this._x;
    
starty this._y;
    
lWert 50;
    
inhalt " The Ultimate Challenge :: 24. August 2007 :: Stadthalle Alsdorf :: Der erste Käfig Free-Fight in der EUREGIO";
    
inhalt inhalt.toUpperCase();
    
anzahl inhalt.length;
    for (
i=1i<=anzahli++) {
        
this._parent.zeichen.duplicateMovieClip("zeichen"+ii);
        
this._parent["zeichen"+i].text inhalt.substr(i1);
    }
};
MovieClip.prototype.sinusText = function(tempofaktorXfaktorYbreitehoehe) {
    
+= tempo;
    
calX startx-(j*breite/faktorX);
    
calY starty+((Math.sin(j*Math.PI/180))*hoehe/faktorY);
    
x1 this._x;
    
y1 this._y;
    
x0 calX;
    
y0 calY;
    
wertX = (x1-x0)/2;
    
wertY = (y1-y0)/2;
    
winkel = ((Math.atan2(wertYwertX)/Math.PI*180));
    
this._rotation winkel-180;
    
this._x calX;
    
this._y calY;
    for (
i=1i<=lWerti++) {
        
calX2 calX+(i*14);
        
calY2 starty+((Math.sin((j-(i*14))*Math.PI/180))*hoehe/faktorY);
        if (
this._parent["zeichen"+i]._x<600) {
            
sx1 this._parent["zeichen"+i]._x;
            
sy1 this._parent["zeichen"+i]._y;
            
sx0 calX2;
            
sy0 calY2;
            
swertX = (sx1-sx0)/2;
            
swertY = (sy1-sy0)/2;
            
swinkel = ((Math.atan2(swertYswertX)/Math.PI*180));
        }
        
this._parent["zeichen"+i]._x calX2;
        
this._parent["zeichen"+i]._y calY2;
        
this._parent["zeichen"+i]._rotation swinkel-180;
        if (
this._parent["zeichen"+i]._x<-10) {
            
removeMovieClip(this._parent["zeichen"+i]);
            
lWert++;
        }
    }
};
//movieclip.prototype.kill = function() {
//    for (a in this) {
//        this[a].removeMovieClip();
//    }
//}; 
__________________

ternärer Konditionaloperator

+++ Bitte keine Privat-Nachrichten bezüglich Flashfragen! +++
Der Frager ist offline   Mit Zitat antworten
Alt 01-04-2007, 17:15   #5 (permalink)
Neuer User
 
Registriert seit: Aug 2004
Beiträge: 7
TAUSEND DANK !!!!
Es funzt
ghazii 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 15:14 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele