im getting a variable ($background) from a php script. so i did echo “background=$background”; in the script so that i can still use the variable ‘background’ in flash. then, i try this: holder.loadMovie(background); and it equals onfloor.jpg, but i dont see onfloor.jpg loaded when i do this! if i just type “onfloor.jpg” it works fine…whats the deal?
It has to be a simple error. I’ve used string variables in loadMovie(); methods before. I know it works.
Try using trace() to make sure that the variable is loading correctly. If it is, then it has to be some issue with where the variable is located, compared to where your command is being called from.
Try:
holder.loadMovie(""+background+"");
Regards,
Viru.