MouseEvent.CLICK - function not working

After parsing some XML to create a vertical project list I’d like to be able to click on the image/icon representing each project and be taken to the URL that’s been parsed in as well. Here’s the error I get when clicking the dynamically generated Movieclips:

[COLOR=“Red”]TypeError: Error #1009: Cannot access a property or method of a null object reference.
at NMD_work_fla::MainTimeline/itemClick()[/COLOR]

Below is the extracted code pieces related to the onClick function:

[SIZE=“2”][FONT=“Courier New”][COLOR=“DarkOrange”]//Sample XML:[/COLOR][/FONT][/SIZE]

	<project image="eRMA.png" link="" description="..." />

[SIZE=“2”][FONT=“Courier New”][COLOR=“DarkOrange”]//Actionscript:[/COLOR][/FONT][/SIZE]

//Assign the "link" value to the variable = [email protected];

//Listen for the projectItem to be clicked on; after which call the itemClick function
projectItem.addEventListener(MouseEvent.CLICK, itemClick);

function itemClick(e:Event):void {
	//Get the item that dispatched the event
    var project:ProjectItem = as ProjectItem;
    //Navigate to the URL that is assigned to the projectItem
    var urlRequest:URLRequest = new URLRequest(;

//************** Other options tried but still failed **************		
//var urlRequest:URLRequest = new URLRequest(;
//var item:ProjectItem = as ProjectItem;
//var loader = new Loader();
//loader.load(new URLRequest(;
//var urlRequest:URLRequest = new URLRequest(item.t);
//var targetURL:String =;
//var urlRequest:URLRequest = new URLRequest(targetURL);
//var page:String = [email protected];

Please help, I’m not sure why I’m receiving the error and have tried various ways of launching the URL.
Thanks, r/c