I’m creating a website for a local company and I am loading the text in with xml. Everything works fine on my machine, but when I upload it any changes that I make to the xml file don’t take effect in the flash page, even after refreshing, and closing and reopening. (All files are in the same domain and it loads okay the first time, but any changes don’t take effect).
I used the kirupa tutorial for xml and this is my code for loading the xml
ActionScript Code:
[FONT=Courier New][LEFT][COLOR=#000000]**function**[/COLOR] loadXML[COLOR=#000000]([/COLOR][COLOR=#0000ff]loaded[/COLOR][COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#0000ff]if[/COLOR] [COLOR=#000000]([/COLOR][COLOR=#0000ff]loaded[/COLOR][COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]
sectionContent = [COLOR=#0000ff]this[/COLOR].[COLOR=#0000ff]firstChild[/COLOR].[COLOR=#0000ff]childNodes[/COLOR][COLOR=#000000][[/COLOR][COLOR=#000080]1[/COLOR][COLOR=#000000]][/COLOR].[COLOR=#0000ff]childNodes[/COLOR][COLOR=#000000][[/COLOR][COLOR=#000080]0[/COLOR][COLOR=#000000]][/COLOR].[COLOR=#0000ff]firstChild[/COLOR].[COLOR=#0000ff]nodeValue[/COLOR];
[COLOR=#000000]}[/COLOR]
[COLOR=#000000]}[/COLOR]
xmlData = [COLOR=#000000]new[/COLOR] [COLOR=#0000ff]XML[/COLOR]COLOR=#000000[/COLOR];
xmlData.[COLOR=#0000ff]ignoreWhite[/COLOR] = [COLOR=#000000]true[/COLOR];
xmlData.[COLOR=#0000ff]onLoad[/COLOR] = loadXML;
xmlData.[COLOR=#0000ff]load[/COLOR]COLOR=#000000[/COLOR];
format = [COLOR=#000000]new[/COLOR] [COLOR=#0000ff]TextField[/COLOR].[COLOR=#000080]StyleSheet[/COLOR]COLOR=#000000[/COLOR];
path = [COLOR=#ff0000]“styles.css”[/COLOR];
format.[COLOR=#0000ff]load[/COLOR]COLOR=#000000[/COLOR];
format.[COLOR=#0000ff]onLoad[/COLOR] = [COLOR=#000000]function[/COLOR]COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#0000ff]if[/COLOR] COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]
content_txt.[COLOR=#000080]styleSheet[/COLOR] = format;
content_txt.[COLOR=#0000ff]htmlText[/COLOR] = sectionContent;
[COLOR=#000000]}[/COLOR]
[COLOR=#000000]}[/COLOR];
[/LEFT]
[/FONT]