Groups | Blog | Home
all groups > flash data integration > august 2006 >

flash data integration : flash and ASP problems


-->dan mode
8/2/2006 4:55:39 PM
Mark,

Try this:

Put a dynamic text field on your stage and give it an instance name of
textBox. Then put this code on frame one:

loadText = new LoadVars();
loadText.load("http://www.nickphotography.com/contact/customer_system/data.asp");
loadText.onLoad = function(success) {
if (success) {

textBox.text = this.bride+" "+this.groom+" "+this.folders;;

}
};


--

Dan Mode
--> Adobe Community Expert
*Flash Helps* http://www.smithmediafusion.com/blog/?cat=11
*THE online Radio* http://www.tornadostream.com
*Must Read* http://www.smithmediafusion.com/blog


[quoted text, click to view]

mark1991
8/2/2006 9:51:08 PM
I have an ASP file that gives out the following output when opened in the
browser on the internet:
bride=Olga&groom=Alex&folders=2

see for yourself here :
http://www.nickphotography.com/contact/customer_system/data.asp


The code in the first frame of the flash file is:
loadVariables("data.asp","");


The variables don't load into the flash movie though.


it works fine when I make a text file containing the ASP output and change the
flash code to
loadVariables("data.txt","");


what's wrong and how do I fix this problem.
thanks in adance for the help!
AddThis Social Bookmark Button