Groups | Blog | Home
all groups > flash data integration > september 2005 >

flash data integration : more Flash and ASP



Kree8R
9/14/2005 8:53:51 PM
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 :-)

Randy1969
9/16/2005 6:20:30 PM
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
9/26/2005 10:00:42 AM
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...

[quoted text, click to view]

AddThis Social Bookmark Button