I have an application which uses multiple packages of AS3 code and a main .fla file. Whenever I publish the main fla, my traces in the .as files don’t show up in my output window. Any reason for this?
an example would be:
internal function generateArrays (sectn:Number):void {
var whichSection:XMLList = myXML..SECTION.(@id == String(sectn));
var probList:XMLList = whichSection.PROBLEM;
numQstns = probList.length();
sectStart = Number(probList[0].@id);
questions = new Array();
choiceA = new Array();
choiceB = new Array();
choiceC = new Array();
choiceD = new Array();
choiceE = new Array();
choiceF = new Array();
choiceG = new Array();
answers = new Array();
for (var i:Number=0; i<numQstns; i++) {
var curProb:XMLList = probList.(@id == String(i+1));
if (curProb.QUESTION.hasSimpleContent()) {
questions* = curProb.QUESTION.toString();
}else {
//trace(curProb.QUESTION.toXMLString());
questions* = dropTags(curProb.QUESTION[0]);
}
choiceA* = curProb.CHOICE.(@letter == "a").toString();
choiceB* = curProb.CHOICE.(@letter == "b").toString();
choiceC* = curProb.CHOICE.(@letter == "c").toString();
choiceD* = curProb.CHOICE.(@letter == "d").toString();
choiceE* = curProb.CHOICE.(@letter == "e").toString();
choiceF* = curProb.CHOICE.(@letter == "f").toString();
choiceG* = curProb.CHOICE.(@letter == "g").toString();
answers* = curProb.CHOICE.(hasOwnProperty("@correct") && @correct == "true").@letter.toString();
trace (generateArrays);
}