utfrodo54
10-31-2006, 03:37 PM
(this all works in IE, but not firefox)
I have a simple AS that reads some data from a php file. the php file reads a dir full of images, picks one at random, and shoots out something like:
image=path/name.jpg
using flash mx 2k4, here is what im doing:
on my very first frame, doing this:
myLV = new LoadVars();
myLV.load("http://url.com/path/main_random_pics.php");
myLV.onLoad = function() {
currentbanner.text = this.image;
}
it places the path and name of the url from the php file into a textbox that is way off to the side, just for storing purposes.
later then i have a empty movie clip on a frame, called/instancenamed "banner":
banner.loadMovie(currentbanner.text);
works fine in IE, its simple enough, and nothing in firefox. Firefox IS loading text from a database using similar techniques, so I am not sure what is going on?
thanks, sorry to abuse my first post with a question.
I have a simple AS that reads some data from a php file. the php file reads a dir full of images, picks one at random, and shoots out something like:
image=path/name.jpg
using flash mx 2k4, here is what im doing:
on my very first frame, doing this:
myLV = new LoadVars();
myLV.load("http://url.com/path/main_random_pics.php");
myLV.onLoad = function() {
currentbanner.text = this.image;
}
it places the path and name of the url from the php file into a textbox that is way off to the side, just for storing purposes.
later then i have a empty movie clip on a frame, called/instancenamed "banner":
banner.loadMovie(currentbanner.text);
works fine in IE, its simple enough, and nothing in firefox. Firefox IS loading text from a database using similar techniques, so I am not sure what is going on?
thanks, sorry to abuse my first post with a question.