Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 15-01-2006, 12:51   #1 (permalink)
tracer
 
Benutzerbild von andretti
 
Registriert seit: Jun 2004
Beiträge: 4.415
movieclip "aufpeppeln" lassen

aloha!
habe per script einen mc mit einem dyn textfeld erstellt;
anfangs yscale = 0;

nun soll der mc sich "öffnen"- yscale also += wert;
wenn yscale 100 % erreicht hat, möchte ich, dass der noch ein paar mal "aufpeppelt", also so wie wabber irgendwie....aber ich komm net dajinter;
hier der code:

PHP-Code:
//++++++++++++++++++++++++++++++++++++++++++++++init
var thisFilm:MovieClip this;
//+++++++++++++++++++++++++++++++++++++++++++++++++++text-movieclip
thisFilm.createEmptyMovieClip("textClip"10);
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++text
thisFilm.textClip.createTextField("T_text"100450285);
thisFilm.textClip.T_text.multiline true;
thisFilm.textClip.T_text.background true;
thisFilm.textClip.T_text.backgroundColor "0xD3C27C";
thisFilm.textClip.T_text.border true;
thisFilm.textClip.T_text.wordWrap true;
thisFilm.textClip.T_text.html true;
thisFilm.textClip.T_text.mouseWheelEnabled true;
thisFilm.textClip.T_text.selectable true;
thisFilm.textClip.T_text.borderColor "0xFFFFFF";
var 
myTextFormat:TextFormat = new TextFormat();
myTextFormat.align left;
myTextFormat.font "Verdana";
myTextFormat.leading 2;
myTextFormat.size 11;
//myTextFormat.blockIndent = 3;
//thisFilm.textClip.T_text.setTextFormat(myTextFormat);
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++scrolling
thisFilm.textClip.createEmptyMovieClip("MC_up"2);
thisFilm.textClip.MC_up._x thisFilm.textClip.T_text._x+thisFilm.textClip.T_text._width+4;
thisFilm.textClip.MC_up._y thisFilm.textClip.T_text._y+2;
with (thisFilm.textClip.MC_up) {
    
lineStyle(10xFFFFFF100);
    
beginFill(0xD3C27C100);
    
moveTo(60);
    
lineTo(60);
    
lineTo(1212);
    
lineTo(012);
    
lineTo(60);
}
thisFilm.textClip.MC_up.duplicateMovieClip("MC_down"3);
thisFilm.textClip.MC_down._yscale = -100;
thisFilm.textClip.MC_down._x thisFilm.textClip.T_text._x+thisFilm.textClip.T_text._width+4;
thisFilm.textClip.MC_down._y thisFilm.textClip.T_text._y+thisFilm.textClip.T_text._height;
thisFilm.textClip.MC_up.onRollOver = function() {
    
this.useHandCursor false;
    
_global.rauf setInterval(function () {
        
thisFilm.textClip.T_text.scroll--;
    }, 
100);
};
thisFilm.textClip.MC_up.onRollOut = function() {
    
clearInterval(_global.rauf);
};
thisFilm.textClip.MC_down.onRollOver = function() {
    
this.useHandCursor false;
    
_global.runter setInterval(function () {
        
thisFilm.textClip.T_text.scroll++;
    }, 
100);
};
thisFilm.textClip.MC_down.onRollOut = function() {
    
clearInterval(_global.runter);
};
thisFilm.textClip.MC_up._alpha thisFilm.textClip.MC_down._alpha=0;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++wabber
thisFilm.textClip._yscale 0;
thisFilm.textClip.onEnterFrame = function() {
    
this._yscale += 5;
    if (
this._yscale>=100) {
        
delete this.onEnterFrame;
        
this._yscale 100;
        
this.T_text.htmlText "<font color='#FFFFFF'><p></p>Aloha! ;-)</font><br><br><textformat blockindent='30'>12.01.05 : still working at this site, no idea, what to do with the place right apart from the text field.......<br>Image?  Drawing?</textformat>";
        
this.T_text.setTextFormat(myTextFormat);
        var 
fading setInterval(function () {
            
clearInterval(fading);
            
thisFilm.textClip.MC_up.onEnterFrame = function() {
                
this._alpha += 4;
                
this._parent.MC_down._alpha this._alpha;
                if (
this._alpha>=100) {
                    
delete this.onEnterFrame;
                }
            };
        }, 
500);
    }
}; 
As- formatierung nehm' ich net, da schauts aus wie beim karneval......
Angehängte Dateien
Dateityp: rar test.rar (7,1 KB, 8x aufgerufen)
__________________
Viola per Sempre
Alle Angaben ohne Gewehr!
trace your open mind in variables !
andretti
ActionScript Dictionary
andretti ist offline   Mit Zitat antworten
Alt 15-01-2006, 13:20   #2 (permalink)
................
 
Benutzerbild von Der Frager
 
Registriert seit: Jun 2004
Beiträge: 15.890
Hallo!
Sowas?
PHP-Code:
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++wabber 
new mx.transitions.Tween(thisFilm.textClip"_yscale"mx.transitions.easing.Elastic.easeOut010040);
thisFilm.textClip.onEnterFrame = function() {
    if (
this._yscale==100&&this.temp ==100) {
        
delete this.onEnterFrame;
        
this._yscale 100;
        
this.T_text.htmlText "<font color='#FFFFFF'><p></p>Aloha! ;-)</font><br><br><textformat blockindent='30'>12.01.05 : still working at this site, no idea, what to do with the place right apart from the text field.......<br>Image?  Drawing?</textformat>";
        
this.T_text.setTextFormat(myTextFormat);
        var 
fading setInterval(function () {
            
clearInterval(fading);
            
thisFilm.textClip.MC_up.onEnterFrame = function() {
                
this._alpha += 4;
                
this._parent.MC_down._alpha this._alpha;
                if (
this._alpha>=100) {
                    
delete this.onEnterFrame;
                }
            };
        }, 
500);
    }
    
this.temp this._yscale
}; 
Ansonsten auch mal HIER vorbeigucken. Der flashinterne Tween-Krams ist nicht so dolle...
__________________

ternärer Konditionaloperator

+++ Bitte keine Privat-Nachrichten bezüglich Flashfragen! +++

Geändert von Der Frager (15-01-2006 um 13:36 Uhr)
Der Frager ist offline   Mit Zitat antworten
Alt 15-01-2006, 14:03   #3 (permalink)
tracer
 
Benutzerbild von andretti
 
Registriert seit: Jun 2004
Beiträge: 4.415
wow!

wo find ich den info über des easing?
dass der langsamer runterzischt........?
__________________
Viola per Sempre
Alle Angaben ohne Gewehr!
trace your open mind in variables !
andretti
ActionScript Dictionary
andretti ist offline   Mit Zitat antworten
Alt 15-01-2006, 14:11   #4 (permalink)
................
 
Benutzerbild von Der Frager
 
Registriert seit: Jun 2004
Beiträge: 15.890
Also die Zeit kannst du mit dem letzten Parameter einstellen
PHP-Code:
new mx.transitions.Tween(thisFilm.textClip"_yscale"mx.transitions.easing.Elastic.easeOut010060);//<-- Also hier jetzt 60 z.B. 
aber, wie gesagt, solltest du mal dem Link den ich gepostet habe folgen (also "laco.wz.cz/tween").
Ansonsten kannst du dich auch unter http://www.actionscript.org/tutorial...ed/index.shtml ein wenig schlauer machen.
Allerdings sind halt die Tween/Easing Classes von Flash selbst (wie gesagt) nicht besonders flexibel.
__________________

ternärer Konditionaloperator

+++ Bitte keine Privat-Nachrichten bezüglich Flashfragen! +++
Der Frager 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 23:41 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele