Zurück   Flashforum > Flash > ActionScript > ActionScript 3

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 23-08-2010, 11:49   #1 (permalink)
Animateur
 
Benutzerbild von Master Wu
 
Registriert seit: Jan 2003
Ort: MZ
Beiträge: 1.536
CSS standard Stil

Hi, ich lade eine css-datei ein und ordne sie einem TextField zu.

HTML-Code:
*{
font-family:Arial,Helvetica,sans-serif;
color:#ffffff;
}

.customBold{
font-family:Arial,Helvetica,sans-serif;
color:#FF0000;
}
Der .customBold Style funktioniert auch, wenn man ihn zuweist:
HTML-Code:
<span class="customBold">This is a silly text with CSS style</span> and without CSS!
Aber ich schaffs nicht, einen Standardstil zuzuweisen (*), der auf den Rest angewendet werden soll :/
Der wird einfach ignoriert.
hab html{}, body{} und *{} ausprobiert, passiert nix.
__________________
there is no way to happiness, happiness is the way - flashgames

Geändert von Master Wu (23-08-2010 um 11:50 Uhr)
Master Wu ist offline   Mit Zitat antworten
Alt 23-08-2010, 12:50   #2 (permalink)
in the boondocks
 
Benutzerbild von shin10
 
Registriert seit: Feb 2006
Ort: Augsburg
Beiträge: 3.496
hab gerade das hier in der flash hilfe gefunden. flash.text.StyleSheet (ActionScript 3.0)

is ein wenig umständlich und man denkt sich, warum nicht gleich mit * aber hey
PHP-Code:
        public function loaderCompleteHandler(event:Event):void {
            var 
cssFormat:TextFormat = new TextFormat();
            
sheet.parseCSS(loader.data);
            var 
style:Object sheet.getStyle("p");
            
cssFormat sheet.transform(style);
            
inputField.defaultTextFormat cssFormat;
        } 
mfg

sx
__________________

flintfabrik.de
shin10 ist offline   Mit Zitat antworten
Alt 23-08-2010, 12:57   #3 (permalink)
Animateur
 
Benutzerbild von Master Wu
 
Registriert seit: Jan 2003
Ort: MZ
Beiträge: 1.536
Ahhh, ja, das klappt, super, danke!
__________________
there is no way to happiness, happiness is the way - flashgames
Master Wu ist offline   Mit Zitat antworten
Antwort

Lesezeichen

Stichworte
css, standard

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


Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
borderSides im Stil angeben marc Flex programmieren 4 21-11-2008 12:36
Frage zu besserem Stil firstlord18 PHP und MySQL 18 04-07-2007 18:30
MIt Stil bitte Hehler ActionScript 1 5 24-01-2003 21:54
font stil aus stylesheet? ibiza pedro Flash 4 und Flash 5 6 12-07-2002 13:46


Alle Zeitangaben in WEZ +1. Es ist jetzt 16:21 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele