all groups > flash actionscript > april 2004 >
You're in the

flash actionscript

group:

Load variable from ASP file


Load variable from ASP file paz
4/14/2004 10:17:55 PM
flash actionscript:
I'm struggling with loading a single variable from an ASP file into Flash and a
dynamic tex box. I sure I'm missing something obvious. Any suggestions would
be greatly appreciated.

ASP File
<%
Response.write "Comments=This is the sample text."
%>

Flash File
myData = new LoadVars()
myData.load("data.asp")
myData.onLoad = function(succes){
if(succes){
Comments.text = this.Comments
} else trace("Error loading data")
}
stop()

Download Sample Files
http://www.pasnik.com/sample.zip

Thank you in advance for your time.
Re: Load variable from ASP file eryopse
4/15/2004 7:57:03 AM
Re: Load variable from ASP file adireddy
4/15/2004 8:29:30 AM
AddThis Social Bookmark Button