[COLOR=#000000][FONT=verdana]Hi there,[/FONT][/COLOR]
[COLOR=#000000][FONT=verdana]I have written the following to send variables to PHP which searches a MySQL database and returns the results in XML. However for the life of me I cannot get the XML data loaded into the Movie Clips of my Flash site.[/FONT][/COLOR]
[COLOR=#000000][FONT=verdana]Is there an obvious problem that I’ve overlooked?
[/FONT][/COLOR]
[LEFT][COLOR=#993300][FONT=monospace]var[/FONT][/COLOR][COLOR=#000000][FONT=monospace] imageDir:[/FONT][/COLOR][COLOR=#993300][FONT=monospace]String[/FONT][/COLOR][COLOR=#000000][FONT=monospace] = [/FONT][/COLOR][COLOR=#0000FF][FONT=monospace]"Images/"[/FONT][/COLOR][COLOR=#000000][FONT=monospace];
[/FONT][/COLOR][COLOR=#993300][FONT=monospace]var[/FONT][/COLOR][COLOR=#000000][FONT=monospace] getImage:[/FONT][/COLOR][COLOR=#993300][FONT=monospace]XML[/FONT][/COLOR][COLOR=#000000][FONT=monospace];
[/FONT][/COLOR][COLOR=#993300][FONT=monospace]var[/FONT][/COLOR][COLOR=#000000][FONT=monospace] imageList = [/FONT][/COLOR][COLOR=#993300][FONT=monospace]new[/FONT][/COLOR][COLOR=#993300][FONT=monospace]Array[/FONT][/COLOR][COLOR=#000000][FONT=monospace]([/FONT][/COLOR][COLOR=#000000][FONT=monospace])[/FONT][/COLOR][COLOR=#000000][FONT=monospace];
[/FONT][/COLOR][COLOR=#993300][FONT=monospace]var[/FONT][/COLOR][COLOR=#000000][FONT=monospace] newPic:[/FONT][/COLOR][COLOR=#993300][FONT=monospace]MovieClip[/FONT][/COLOR][COLOR=#000000][FONT=monospace] = [/FONT][/COLOR][COLOR=#993300][FONT=monospace]new[/FONT][/COLOR][COLOR=#993300][FONT=monospace]MovieClip[/FONT][/COLOR][COLOR=#000000][FONT=monospace]([/FONT][/COLOR][COLOR=#000000][FONT=monospace])[/FONT][/COLOR][COLOR=#000000][FONT=monospace];
[/FONT][/COLOR][COLOR=#993300][FONT=monospace]var[/FONT][/COLOR][COLOR=#000000][FONT=monospace] thumbnailGroup:[/FONT][/COLOR][COLOR=#993300][FONT=monospace]MovieClip[/FONT][/COLOR][COLOR=#000000][FONT=monospace] = [/FONT][/COLOR][COLOR=#993300][FONT=monospace]new[/FONT][/COLOR][COLOR=#993300][FONT=monospace]MovieClip[/FONT][/COLOR][COLOR=#000000][FONT=monospace]([/FONT][/COLOR][COLOR=#000000][FONT=monospace])[/FONT][/COLOR][COLOR=#000000][FONT=monospace];
[/FONT][/COLOR][COLOR=#993300][FONT=monospace]var[/FONT][/COLOR][COLOR=#000000][FONT=monospace] loadGallery:[/FONT][/COLOR][COLOR=#993300][FONT=monospace]String[/FONT][/COLOR][COLOR=#000000][FONT=monospace] = [/FONT][/COLOR][COLOR=#0000FF][FONT=monospace]"getImage.php"[/FONT][/COLOR][COLOR=#000000][FONT=monospace];
[/FONT][/COLOR][COLOR=#993300][FONT=monospace]function[/FONT][/COLOR][COLOR=#000000][FONT=monospace] sendVariables [/FONT][/COLOR][COLOR=#000000][FONT=monospace]([/FONT][/COLOR][COLOR=#993300][FONT=monospace]e[/FONT][/COLOR][COLOR=#000000][FONT=monospace]:MouseEvent[/FONT][/COLOR][COLOR=#000000][FONT=monospace])[/FONT][/COLOR][COLOR=#000000][FONT=monospace]:[/FONT][/COLOR][COLOR=#993300][FONT=monospace]void
[/FONT][/COLOR][COLOR=#000000][FONT=monospace]{
[/FONT][/COLOR][COLOR=#993300][FONT=monospace]var[/FONT][/COLOR][COLOR=#000000][FONT=monospace] urlRequest:URLRequest = [/FONT][/COLOR][COLOR=#993300][FONT=monospace]new[/FONT][/COLOR][COLOR=#000000][FONT=monospace] URLRequest[/FONT][/COLOR][COLOR=#000000][FONT=monospace]([/FONT][/COLOR][COLOR=#000000][FONT=monospace]loadGallery[/FONT][/COLOR][COLOR=#000000][FONT=monospace])[/FONT][/COLOR][COLOR=#000000][FONT=monospace];
[/FONT][/COLOR][COLOR=#993300][FONT=monospace]var[/FONT][/COLOR][COLOR=#000000][FONT=monospace] myVariables:URLVariables = [/FONT][/COLOR][COLOR=#993300][FONT=monospace]new [/FONT][/COLOR][COLOR=#000000][FONT=monospace]URLVariables[/FONT][/COLOR][COLOR=#000000][FONT=monospace]([/FONT][/COLOR][COLOR=#000000][FONT=monospace])[/FONT][/COLOR][COLOR=#000000][FONT=monospace];
myVariables.[/FONT][/COLOR][COLOR=#000000][FONT=monospace]artist[/FONT][/COLOR][COLOR=#000000][FONT=monospace] = artist_cb.[/FONT][/COLOR][COLOR=#000000][FONT=monospace]value[/FONT][/COLOR][COLOR=#000000][FONT=monospace];
myVariables.[/FONT][/COLOR][COLOR=#000000][FONT=monospace]medium[/FONT][/COLOR][COLOR=#000000][FONT=monospace] = medium_cb.[/FONT][/COLOR][COLOR=#000000][FONT=monospace]value[/FONT][/COLOR][COLOR=#000000][FONT=monospace];
myVariables.[/FONT][/COLOR][COLOR=#993300][FONT=monospace]size[/FONT][/COLOR][COLOR=#000000][FONT=monospace] = size_cb.[/FONT][/COLOR][COLOR=#000000][FONT=monospace]value[/FONT][/COLOR][COLOR=#000000][FONT=monospace];
myVariables.[/FONT][/COLOR][COLOR=#000000][FONT=monospace]format[/FONT][/COLOR][COLOR=#000000][FONT=monospace] = format_cb.[/FONT][/COLOR][COLOR=#000000][FONT=monospace]value[/FONT][/COLOR][COLOR=#000000][FONT=monospace];
myVariables.[/FONT][/COLOR][COLOR=#000000][FONT=monospace]subject[/FONT][/COLOR][COLOR=#000000][FONT=monospace] = subject_cb.[/FONT][/COLOR][COLOR=#000000][FONT=monospace]value[/FONT][/COLOR][COLOR=#000000][FONT=monospace];
myVariables.[/FONT][/COLOR][COLOR=#000000][FONT=monospace]colour[/FONT][/COLOR][COLOR=#000000][FONT=monospace] = colour_cb.[/FONT][/COLOR][COLOR=#000000][FONT=monospace]value[/FONT][/COLOR][COLOR=#000000][FONT=monospace];
myVariables.[/FONT][/COLOR][COLOR=#000000][FONT=monospace]price[/FONT][/COLOR][COLOR=#000000][FONT=monospace] = price_cb.[/FONT][/COLOR][COLOR=#000000][FONT=monospace]value[/FONT][/COLOR][COLOR=#000000][FONT=monospace];
myVariables.[/FONT][/COLOR][COLOR=#000000][FONT=monospace]available[/FONT][/COLOR][COLOR=#000000][FONT=monospace] = available_cb.[/FONT][/COLOR][COLOR=#000000][FONT=monospace]value[/FONT][/COLOR][COLOR=#000000][FONT=monospace];
urlRequest.[/FONT][/COLOR][COLOR=#000000][FONT=monospace]method[/FONT][/COLOR][COLOR=#000000][FONT=monospace] = URLRequestMethod.[/FONT][/COLOR][COLOR=#000000][FONT=monospace]POST[/FONT][/COLOR][COLOR=#000000][FONT=monospace];
urlRequest.[/FONT][/COLOR][COLOR=#993300][FONT=monospace]data[/FONT][/COLOR][COLOR=#000000][FONT=monospace] = myVariables;
[/FONT][/COLOR][COLOR=#000000][FONT=monospace]}
[/FONT][/COLOR][COLOR=#993300][FONT=monospace]
function[/FONT][/COLOR][COLOR=#000000][FONT=monospace] loadXml[/FONT][/COLOR][COLOR=#000000][FONT=monospace]([/FONT][/COLOR][COLOR=#000000][FONT=monospace]xml_file:[/FONT][/COLOR][COLOR=#993300][FONT=monospace]String[/FONT][/COLOR][COLOR=#000000][FONT=monospace])[/FONT][/COLOR][COLOR=#000000][FONT=monospace]:[/FONT][/COLOR][COLOR=#993300][FONT=monospace]void
[/FONT][/COLOR][COLOR=#000000][FONT=monospace]{
[/FONT][/COLOR][COLOR=#993300][FONT=monospace]var[/FONT][/COLOR][COLOR=#000000][FONT=monospace] varLoader:URLLoader = [/FONT][/COLOR][COLOR=#993300][FONT=monospace]new[/FONT][/COLOR][COLOR=#000000][FONT=monospace] URLLoader[/FONT][/COLOR][COLOR=#000000][FONT=monospace]([/FONT][/COLOR][COLOR=#000000][FONT=monospace])[/FONT][/COLOR][COLOR=#000000][FONT=monospace];
varLoader.[/FONT][/COLOR][COLOR=#993300][FONT=monospace]load[/FONT][/COLOR][COLOR=#000000][FONT=monospace]([/FONT][/COLOR][COLOR=#993300][FONT=monospace]new[/FONT][/COLOR][COLOR=#000000][FONT=monospace] URLRequest [/FONT][/COLOR][COLOR=#000000][FONT=monospace]([/FONT][/COLOR][COLOR=#000000][FONT=monospace]xml_file[/FONT][/COLOR][COLOR=#000000][FONT=monospace])[/FONT][/COLOR][COLOR=#000000][FONT=monospace])[/FONT][/COLOR][COLOR=#000000][FONT=monospace];
varLoader.[/FONT][/COLOR][COLOR=#000000][FONT=monospace]dataFormat[/FONT][/COLOR][COLOR=#000000][FONT=monospace] = URLLoaderDataFormat.[/FONT][/COLOR][COLOR=#000000][FONT=monospace]VARIABLES[/FONT][/COLOR][COLOR=#000000][FONT=monospace];
varLoader.[/FONT][/COLOR][COLOR=#000000][FONT=monospace]addEventListener[/FONT][/COLOR][COLOR=#000000][FONT=monospace]([/FONT][/COLOR][COLOR=#000000][FONT=monospace]Event.[/FONT][/COLOR][COLOR=#000000][FONT=monospace]COMPLETE[/FONT][/COLOR][COLOR=#000000][FONT=monospace], create_thumbnail[/FONT][/COLOR][COLOR=#000000][FONT=monospace])[/FONT][/COLOR][COLOR=#000000][FONT=monospace];
[/FONT][/COLOR][COLOR=#000000][FONT=monospace]}[/FONT][/COLOR][/LEFT]
[COLOR=#000000][FONT=verdana]The remaining script handles the loaded data but I think the problem lies somewhere in the URLLoader. Any advice would be much appreciated![/FONT][/COLOR]