hifu
04-14-2003, 08:14 PM
First, sorry for the repost, but...
Can anyone tell me why this works from my machine, but not when I post it? I'm trying to pull in random quotes from a database and populate dynamic text field on stage (named "barf" in this case). I've tried it with the _root.loadVariables() too, but I get the same result. I know the php call is working since it pulls in fine on my local machine when viewing in flash player (and putting in url field of browser)
//frame 1
quoteVariable= new LoadVars();
quoteVariable.load("http://ipa.premierelink.com/daystests/newton/GetRandomQuote.php?program=18");
//frame5
//dynamic text box named "barf" placed on stage
barf=quoteVariable.quote;
trace(quote);
stop();
---------------------
Also, if you can help me with a side-problem–both of these end up tracing when placed right after the "quoteVariable.load..." in frame 1.
quoteVariable.onLoad = function(success){
trace("success");
};
quoteVariable.onLoad = function(fail){
trace("fail");
};
Can anyone tell me why this works from my machine, but not when I post it? I'm trying to pull in random quotes from a database and populate dynamic text field on stage (named "barf" in this case). I've tried it with the _root.loadVariables() too, but I get the same result. I know the php call is working since it pulls in fine on my local machine when viewing in flash player (and putting in url field of browser)
//frame 1
quoteVariable= new LoadVars();
quoteVariable.load("http://ipa.premierelink.com/daystests/newton/GetRandomQuote.php?program=18");
//frame5
//dynamic text box named "barf" placed on stage
barf=quoteVariable.quote;
trace(quote);
stop();
---------------------
Also, if you can help me with a side-problem–both of these end up tracing when placed right after the "quoteVariable.load..." in frame 1.
quoteVariable.onLoad = function(success){
trace("success");
};
quoteVariable.onLoad = function(fail){
trace("fail");
};