I must admit… I am not programming with classes - mainly because I’ve bought somescripts online and did not manage to modify them into classes since I’m of the victoms of AS3’s learning curve!
I’ve created a tab menu (code is on the main timeline, in a function called xmlLoadedNews) and builds tabs like this :
xmlListLength = xmlList.length()
for (var i:uint=0; i<xmlListLength; i++) {
var newsTab = new NewsTab();
tabHolder.addChild(newsTab);
newsTab.name = i;
Now, I’ve got another script running in a child MC that wants to replace the “xmlList.length()” with the results of playersXML :
var playersXML = xml..event[evt.target.id].players.player.length();
How may I change the variable from xmlListLength to playersXML in the parent MC?