Hi,

I'm writing an app that will take SMS messages sent in via a 3rd party and process them in a control panel (sender) app before sending them to a projector (receiver) app. When the messages come in I add them to an array via push. Then to send them to the projector app I'm popping the first entry from the list and sending it to the projector app. This is working fine, however, the next time the method is called it sends the same data. It's like the array is not being modified outside of the method. If I do multiple pops within the method it pops all the elements out of the array but the next time the method is called they're all back in there.

Here's the method.
Code:
		public function nextQuestion(e:Event):void {
			rCounter++;
			currQcount.text = rCounter.toString();
			question = getQuestion();
			addChild(currQcount);
			trace("qarr inside NQ: " + qArr.toString());
			//question = qArr.pop();
			trace(question);
			trace("qarr: " + qArr.toString());

			if (1) {
				try {
					serverLC.send("myConn", "displayQuestion", question);
				} catch (error:TypeError) { trace("Type error");
				} catch (error:ArgumentError) { trace("Argument error"); }
			}
			

			//qArr.pop();
			total.text = myXML.question.length();
			availResp.text = rCount[0].toString();
			addChild(availResp);
			addChild(total);
			
			
			pollResultsArr = new Array(rCount.length+1);
			for (var y:int=0; y<pollResultsArr.length; y++) {
				pollResultsArr[y] = 0;
			}
		}
and I'm instantiating the array outside the constructor as public static var qArr:Array;

and defining it in the constructor as qArr = new Array();

nothing fancy so I'm not sure why it's not working. Any help is greatly appreciated.