I have a variable on an ASP page and am able to pass it to flash just fine as a string (to test this I setup a dynamic text field and assigned it the variable I pass to flash - Logo)...
the logo string (i.e. McDonalds.jpg) shows up just fine.
Now, I have a group of client logos in a folder (/images/clientlogos/) and would like to dynamically load the jpg logo using something like:
var thelogo;
thelogo = "images/clientlogo/"&Logo;
_root.createEmptyMovieClip("logo_container", 2);
_root.logo_container.loadMovie(thelogo)
_root.logo_container._x = 200;
_root.logo_container._y = 100;
first question is will something like this work (Im using the above actionscript in another project and it loads external images just fine)
second is what is wrong with the above that is preventing it from working?
Thanks!
the logo string (i.e. McDonalds.jpg) shows up just fine.
Now, I have a group of client logos in a folder (/images/clientlogos/) and would like to dynamically load the jpg logo using something like:
var thelogo;
thelogo = "images/clientlogo/"&Logo;
_root.createEmptyMovieClip("logo_container", 2);
_root.logo_container.loadMovie(thelogo)
_root.logo_container._x = 200;
_root.logo_container._y = 100;
first question is will something like this work (Im using the above actionscript in another project and it loads external images just fine)
second is what is wrong with the above that is preventing it from working?
Thanks!