Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Data Integration / September 2005



Tip: Looking for answers? Try searching our database.

more Flash and ASP

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kree8R - 15 Sep 2005 04:53 GMT
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 - 16 Sep 2005 19:20 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.