I have created a simple animated screen show that imports 7 different text values from a xml document that the client can edit each week.
The code I'm using in flash is below code:
var xmlData:XML = new XML();
var theURL_ur:URLRequest = new URLRequest("ClientText.xml");
var loader_ul:URLLoader = new URLLoader(theURL_ur);
loader_ul.addEventListener("complete", fileLoaded);
function fileLoaded(e:Event):void
{
xmlData = XML(loader_ul.data);
m_txt.text = xmlData.monday;
tu_txt.text = xmlData.tuesday;
w_txt.text = xmlData.wednesday;
th_txt.text = xmlData.thursday;
f_txt.text = xmlData.friday;
}
Ive placed this code on frame 1 of my action layer and added 7 separate dynamic text boxes labelled with its corresponding instance name on layer 2.
Upon export all works as it should, populating all 7 text box with its designated text within the linked xml doc.
The problem I'm having is unless all the text boxes are on frame 1 they do not display.
Im trying to display text box1 (m_txt) on frame 20, then display text box2 (tu_txt) on frame 40, then text box3 (w_txt) on 60....and so on.
Apologies as this is a real noob question as this is all new to me. Any help would be extremely appreciated.
Cheers all