No replies
High1
Offline
newbie
Last seen: 14 years 25 weeks ago
Joined: 2008-06-03
Posts: 5
Points: 0

Hello

I have a CSS query about how to format the .css file.

I am trying to pass HTML values into Flash (AS 2) from a server-script (ASP).

This is what I am trying to pass to Flash from the server:

strHTML = strHTML & "<li><a target=""_blank"" href=""" & link & """>" _       
		& "<span style=""font-family: arial; color: #BDA0F2; font-size: 10pt; font-weight: bold;"">" _ 
		& title & "</span>"
		strHTML = strHTML & "</a>" 
		strHTML = strHTML & "</li>"  
		strHTML = strHTML & "<br>"
 
 
 
                strHTML = strHTML & "<span style=""text-align: justify; font-family: arial; color: #CCCCCC; font-size: 10pt; font-weight: normal;"">" _
                & description & "</span>"
		strHTML = strHTML & "<br>"
		strHTML = strHTML & "<br> "    
		Next  
	strHTML = strHTML & "</ul>"

and this is what I have in my AS (2):
var myCSS = new TextField.StyleSheet();
var cssURL = "NewsFeed.css";
myCSS.load(cssURL);
myCSS.onLoad = function(success) {
 if (success) {
bbcNews_txt.styleSheet = myCSS;
bbcNews_txt.text = myFeed.html;
}
};

The idea is that I create a CSS file (NewsField.css), but I am unsure about how to structure it and would be grateful for some advice.

Thanks.

High1