# \[AS3\] External Style Sheets

**URL:** <https://forum.kirupa.com/t/as3-external-style-sheets/217524>\
**Category:** flash\
**Created:** [February 27, 2007, 6:27pm UTC](https://forum.kirupa.com/t/as3-external-style-sheets/217524 "2007-02-27T18:27:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lowdown](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/lowdown/32/3231_2.png) [@lowdown](https://forum.kirupa.com/u/lowdown)\
**Post date:** [February 27, 2007, 6:27pm UTC](https://forum.kirupa.com/t/as3-external-style-sheets/217524/1 "2007-02-27T18:27:19Z")

</div>

This is really frustrating me. I have an external style sheet, and it looks great, but it “flashes” the unstyled content prior to applying the style.

```php
      private var style:WalkStyleSheet = new WalkStyleSheet(); //load my CSS  
            ...
            var locTextField:TextField = new TextField();
            locTextField.styleSheet = style.styleSheet;
            locTextField.selectable = false;
            locTextField.multiline = true;
            locTextField.wordWrap = true;
            if (_isTestMode && !isRevealed) {
                locTextField.htmlText = "<p class='mediumBoldHeadlineLeft'>Click Here to Reveal Description</p>";
                textBoxContainer.buttonMode = true;
                textBoxContainer.addEventListener(MouseEvent.CLICK, revealDescription);
            } else if (isRevealed) {
                locTextField.htmlText = "<p class='mediumBoldHeadlineLeft'>" + _area[_areaIndex].location[_locationIndex].name + "</p>"
                                         + "
<p>" + _area[_areaIndex].location[_locationIndex].description
                                         + "</p>";                
            }
            locTextField.height = 275;            
            locTextField.width = 350;
            locTextField.x = 35;
            locTextField.y = 375;
            locTextField.name = "locTextField";
               textBoxContainer.addChild(locTextField);

```

:hangover:
