My forehead has gone completely flat from banging it against a wall...
Any explanation for the following will be greatly appreciated:
I have an asp page that returns the following string:
&newsitems=<p><b>News Header</b></p><p>News Item Text</p><br>
here's the ASP URL:
http://neo.artsytech.com/ifd/news.asp
and the "second half" (News Item Text) displays in a Flash text field
while the "first half" (News Header) doesn't..... ????
here's the Flash URL:
http://neo.artsytech.com/ifd/testwin.htm
here's the ActionScript:
------------------------------------------
newsvar = new LoadVars();
newsvar.load("news.asp");
newsFont = new TextFormat();
newsFont.font = "Arial";
function loadNews() {
newstext.html = true;
newstext.htmlText = newsvar.newsitems;
}
newsvar.onLoad = loadNews();
newstext.scroll = 1;
newstext.border = true;
newstext.borderColor = 0xcc0000;
newstext.setTextFormat(newsFont);
newstext.embedFonts = true;
------------------------------------------
Thank you :-)
What your returning here from your ASP page:
&newsitems=<p><b>News Header</b></p><p>News Item Text</p><br>
Is in html format, you must encode this with the ASP.
<%
response.write "&newsitems=" & server.htmlencode("<p><b>News
Header</b></p><p>News Item Text</p><br>")
%>
Give that a try
Kree8R - 26 Sep 2005 18:00 GMT
Hi Randy,
Thanks for your suggestion.
I tried it but, Flash converts the string into its own encoding format... so
this step is unnecessary...
as it turns out the <b> tag was the culprit... although it's supposed to
work...
it wasn't for me and the page began working as soon as I removed it...
> What your returning here from your ASP page:
> &newsitems=<p><b>News Header</b></p><p>News Item Text</p><br>
[quoted text clipped - 4 lines]
> %>
> Give that a try