Tween class error on repeating function

Hey I’m still *fairl​y *new to Actionscript and was hopin someone would be able to help me out of a hole I’ve dug myself into. I have a movieclip with multiple movieclips inside of it, and these movieclips’ alpha changes over time(basically its a map with graphics nested within that light up certain areas of the map). By change I mean they “flash” ond and off once.

I have each of these counties in an array and I have a timer and for loop firing on each of these mcs and I push them into the array. Problem is I keep getting an error (1009) after it runs through one cycle… I of course need it to loop.

the error resides on the alpha tween, but I’m just not sure where I’m going wrong, and hope someone will be able to help me out

import fl.transitions.Tween;
import fl.transitions.easing.Strong;
import flash.utils.Timer;
import flash.events.TimerEvent;
import flash.display.DisplayObject;
import flash.display.DisplayObjectContainer;
import flash.display.MovieClip;








var countyArrayMc:Array = new Array();
var countyArray:Array = ["county1", "county2", ..."county25"];






for (var i:int = -1; i < countyArray.length - 1; i++)
{


	countyArrayMc.push(MovieClip(getChildByName(countyArray* + "_mc")));


}


county1_mc.alpha=county2_mc.alpha= ...county25_mc.alpha=0;


var maptimer = new Timer(200, 28);


maptimer.start();
maptimer.addEventListener(TimerEvent.TIMER, countyflash);


function countyflash(event:TimerEvent):void
{


	var countyFadeIn:Tween = new Tween(countyArrayMc[maptimer.currentCount], "alpha", Strong.easeIn, 0, 1, 20, false);
	var countyFadeOut:Tween = new Tween(countyArrayMc[maptimer.currentCount], "alpha", Strong.easeIn, 1, 0, 40, false);
	if (maptimer.currentCount == 28)
	{
		maptimer.removeEventListener(TimerEvent.TIMER, countyflash);
		maptimer.stop();
	}
}

heres the error

TypeError: Error #1009: Cannot access a property or method of a null object reference.
	at fl.transitions::Tween/setPosition()
	at fl.transitions::Tween/set position()
	at fl.transitions::Tween()
	at Map_mc/countyflash()[Map_mc::frame1:37]
	at flash.utils::Timer/_timerDispatch()
	at flash.utils::Timer/tick()

Apologies for the slightly messy code, but I’ve tried a few separate solutions and its kinda made a hash of things, and I also tried running a forEach loop to set the initial alpha to zero, but that also through up another error… so yeah…

I edited the number of mcs down for brevity’s sake, but there is actually 25 of them.

The thing that confusing me is that I have a similar set up on the main timeline to animate 2/3 other mcs, but they seem to have no such problems.

Any help would be much appreciated,

Thanks