Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 20-06-2007, 16:42   #1 (permalink)
Neuer User
 
Benutzerbild von MICKtheBIG
 
Registriert seit: Feb 2004
Ort: Hamburg
Beiträge: 88
Super simpler Tooltipp, aber mit zwei Textfeldern

Hi,

ich habe hier aus dem Forum ein Tooltip-Snippet gefunden, dass fast genau meine Vorstellungen erfüllt. Siehe hier:

im Rollover
PHP-Code:
//Tooltipp
        
_root.createEmptyMovieClip("mc_tooltip"_root.getNextHighestDepth() );
        var 
tx _root.mc_tooltip.createTextField("tooltip"1_xmouse+10_ymouse+1013575); 
        
//Textfeld der Überschrift
        
tx.border true
        
tx.background true
        
tx.html true
        
tx.backgroundColor 0xFFE800;
        
tx.selectable false
        
tx.autoSize true
        
tx.multiline true
        
tx.wordWrap true
        
tx.htmlText headline;
        
tx.embedFonts true;
            
        
tooltip_format = new TextFormat(); 
        
tooltip_format.bold false
        
tooltip_format.size 18
        
tooltip_format.align "center";
        
tooltip_format.font "LTWiesbadenSwing";
        
        
tx.setTextFormat(tooltip_format);

            
_root.mc_tooltip.startDrag();
            
        
_root.mc_tooltip._alpha 90

So nun brauche ich aber ein zweites Textfeld im MC und dabei mache ich irgendwas falsch. Ich habe folgendes probiert:

PHP-Code:
//Tooltipp
        
_root.createEmptyMovieClip("mc_tooltip"_root.getNextHighestDepth() );
        var 
tx _root.mc_tooltip.createTextField("tooltip"1_xmouse+10_ymouse+1013575); 
        
//Textfeld der Überschrift
        
tx.border true
        
tx.background true
        
tx.html true
        
tx.backgroundColor 0xFFE800;
        
tx.selectable false
        
tx.autoSize true
        
tx.multiline true
        
tx.wordWrap true
        
tx.htmlText headline;
        
tx.embedFonts true;
            
        
tooltip_format = new TextFormat(); 
        
tooltip_format.bold false
        
tooltip_format.size 18
        
tooltip_format.align "center";
        
tooltip_format.font "LTWiesbadenSwing";
        
        
tx.setTextFormat(tooltip_format); 
        
        
//Textfeld des Poptextes
        
var tx2 _root.mc_tooltip.createTextField("tooltip2"1_xmouse+10_ymouse+3013575); 
                                
        
tx2.border true
        
tx2.background true
        
tx2.html true
        
tx2.backgroundColor 0xFFFFFF;
        
tx2.selectable false
        
tx2.autoSize true
        
tx2.multiline true
        
tx2.wordWrap true
        
tx2.htmlText pop_text;
        
tx2.embedFonts true;
            
        
tooltip_format2 = new TextFormat(); 
        
tooltip_format2.bold false
        
tooltip_format2.size 12
        
tooltip_format2.align "center";
        
tooltip_format2.font "Arial";
        
        
tx2.setTextFormat(tooltip_format2); 
        
        
        
_root.mc_tooltip.startDrag();
            
        
_root.mc_tooltip._alpha 90
Sieht vielleicht jemand den Fehler?
MICKtheBIG ist offline   Mit Zitat antworten
Alt 20-06-2007, 16:48   #2 (permalink)
................
 
Benutzerbild von Der Frager
 
Registriert seit: Jun 2004
Beiträge: 15.890
Hallo,

nimm mal eine andere Tiefe für das 2te Textfeld.
__________________

ternärer Konditionaloperator

+++ Bitte keine Privat-Nachrichten bezüglich Flashfragen! +++
Der Frager ist offline   Mit Zitat antworten
Alt 20-06-2007, 16:52   #3 (permalink)
Neuer User
 
Benutzerbild von MICKtheBIG
 
Registriert seit: Feb 2004
Ort: Hamburg
Beiträge: 88
Sehr geil, danke! Läuft!

Du solltest mal deinen Namen von "Der Frager" in "Der Antworter" ändern
MICKtheBIG ist offline   Mit Zitat antworten
Alt 20-06-2007, 16:54   #4 (permalink)
................
 
Benutzerbild von Der Frager
 
Registriert seit: Jun 2004
Beiträge: 15.890
Zitat:
Zitat von MICKtheBIG Beitrag anzeigen
Du solltest mal deinen Namen von "Der Frager" in "Der Antworter" ändern
Geiler Joke. Kanne ich noch gar nicht. Nee, echt super kreativ .

















__________________

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 08:55 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele