# Two textfileds prob

**URL:** <https://forum.kirupa.com/t/two-textfileds-prob/213168>\
**Category:** Uncategorized\
**Created:** [January 17, 2007, 12:25pm UTC](https://forum.kirupa.com/t/two-textfileds-prob/213168 "2007-01-17T12:25:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hellohenric](https://avatars.discourse-cdn.com/v4/letter/h/779978/32.png) [@hellohenric](https://forum.kirupa.com/u/hellohenric)\
**Post date:** [January 17, 2007, 12:25pm UTC](https://forum.kirupa.com/t/two-textfileds-prob/213168/1 "2007-01-17T12:25:50Z")

</div>

Hi,

Here is some actionscript:

```auto

var myStyle:TextField.StyleSheet = new TextField.StyleSheet();
myStyle.load("text.css");
content_txtnews.styleSheet = myStyle;

content_txtnews.multiline= true;
content_txtnews.wordWrap = true;
content_txtnews.html = true;

var story:XML = new XML();
story.ignoreWhite = true;
story.load("news.html");
story.onLoad = function () {	
	content_txtnews.htmlText = story;
}

```

If I But this code in one scen, it works fine,

If I But two of this In one scene one of them takes over the other

```auto

var myStyle:TextField.StyleSheet = new TextField.StyleSheet();
myStyle.load("text.css");
content_txtnews.styleSheet = myStyle;

content_txtnews.multiline= true;
content_txtnews.wordWrap = true;
content_txtnews.html = true;

var story:XML = new XML();
story.ignoreWhite = true;
story.load("news.html");
story.onLoad = function () {	
	content_txtnews.htmlText = story;
}

```

```auto

var myStyle:TextField.StyleSheet = new TextField.StyleSheet();
myStyle.load("text.css");
content_txtpress.styleSheet = myStyle;

content_txtpress.multiline= true;
content_txtpress.wordWrap = true;
content_txtpress.html = true;

var story:XML = new XML();
story.ignoreWhite = true;
story.load("press.html");
story.onLoad = function () {	
	content_txtpress.htmlText = story;
}

```

How do I solve this?

Thanks in advance  
Henric
