# Trouble strictly typing a TextFormat or StyleSheet var

**URL:** <https://forum.kirupa.com/t/trouble-strictly-typing-a-textformat-or-stylesheet-var/286231>\
**Category:** flash\
**Created:** [April 12, 2009, 10:53am UTC](https://forum.kirupa.com/t/trouble-strictly-typing-a-textformat-or-stylesheet-var/286231 "2009-04-12T10:53:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pixel\_streamer](https://avatars.discourse-cdn.com/v4/letter/p/a8b319/32.png) [@pixel\_streamer](https://forum.kirupa.com/u/pixel_streamer)\
**Post date:** [April 12, 2009, 10:53am UTC](https://forum.kirupa.com/t/trouble-strictly-typing-a-textformat-or-stylesheet-var/286231/1 "2009-04-12T10:53:33Z")

</div>

While experimenting with the information in this post:

> **[CSS adds extra line?](https://www.kirupa.com/forum/showthread.php?t=265916&highlight=stylesheet)**
>
> Got a web design/development question or just want to hang out with the most awesome people on the planet? Drop on in!

I kept getting an error while trying to strictly type the line:

```auto
var format = new TextField.StyleSheet();

```

is the var format here a TextFormat object, or a StyleSheet ? I tried importing the TextField.StyleSheet class per the help files, but that didn’t seem to help.
