I have a MC which contains another MC which then contains a Btn. I am trying to load text from a txt file named TEXT1.txt into a field named newsBox which is on the root timeline. This is my Btn code:
ActionScript Code:
[FONT=Courier New][LEFT][COLOR=#0000FF]on[/COLOR] COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]
loadText = [COLOR=#000000]new[/COLOR] [COLOR=#0000FF]loadVars[/COLOR]COLOR=#000000[/COLOR];
loadText.[COLOR=#0000FF]load[/COLOR]COLOR=#000000[/COLOR];
loadText.[COLOR=#0000FF]onLoad[/COLOR] = [COLOR=#000000]function[/COLOR]COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#0000FF]if[/COLOR] COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#808080]// trace(success);[/COLOR]
newsBox.[COLOR=#0000FF]html[/COLOR] = [COLOR=#000000]true[/COLOR];
newsBox.[COLOR=#0000FF]htmlText[/COLOR] = [COLOR=#0000FF]this[/COLOR].[COLOR=#000080]myNews[/COLOR];
[COLOR=#000000]}[/COLOR]
[COLOR=#000000]}[/COLOR];
[COLOR=#000000]}[/COLOR]
[/LEFT]
[/FONT]
The text isn’t loading of course but I’m not sure how to reorganise the code so that it does…target path all wrong?
wB