|
-
how do i make the following code work when I press a button, right now it is set start on load. another thing is for some reason I can't get it to scroll like I have my other text boxes.
var myStyle:TextField.StyleSheet = new TextField.StyleSheet();
myStyle.load("sample.css");
my_txt.styleSheet = myStyle;
my_txt.multiline= true;
my_txt.wordWrap = true;
my_txt.html = true;
var story:XML = new XML();
story.ignoreWhite = true;
story.load("sample.html");
story.onLoad = function () {
my_txt.htmlText = story;
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|