Print this page (From external .as)

I’m working on somebody else’s file. I am trying to have a ‘print this page’ link on a Flash website. I know how to embed the code within the file in the actions panel, but because the way this file was created, that generates an error for me. Therefor, I have to add the script in an external file (the way all the button links are loaded). So below is the actionscript from the external file. All the links work, so that code is ok. But I am unable to setup the ‘print this page’ properly. My code is ‘_printBtn’ and the function (printContent) is all the way at the bottom. Can anyone recognize what I’ve done wrong?


package com.studio.flashbang.app.views.howtobuy
{
	
	import com.studio.flashbang.lib.views.Page;
	
	import flash.events.*;
	import flash.net.*;
	
	import com.asual.swfaddress.*;
	
	import com.greensock.TweenMax;
	import com.greensock.easing.*;
	

	public class HowToBuy extends Page
	{
		
		//--------------------------------------
		// CLASS CONSTANTS
		//--------------------------------------
		
		//--------------------------------------
		//  CONSTRUCTOR
		//--------------------------------------
				

		public function HowToBuy( )
		{
		  
			_panel1._link1.value = "http://www.website.com";
			_panel1._link2.value = "http://website.com/Business";
			_panel1._printBtn.value = "#";
			
			
			_panel1._link1.addEventListener(MouseEvent.CLICK, clickLink);
			_panel1._link2.addEventListener(MouseEvent.CLICK, clickLink);
			_panel1._printBtn.addEventListener(MouseEvent.CLICK,printContent);
			

			
			_panel1._link1.buttonMode = true;
			_panel1._link2.buttonMode = true;
			_panel1._printBtn.buttonMode = true;
			
      
      _sub1.value = 1;
      _sub2.value = 2;
      _sub3.value = 3;
      
      _sub1.url = "/how_to_buy/";
      _sub2.url = "/how_to_buy/existing_customers/";
      _sub3.url = "/how_to_buy/partner/";
      
      _sub1.hit.addEventListener(MouseEvent.CLICK, onSubClick);
      _sub2.hit.addEventListener(MouseEvent.CLICK, onSubClick);
      _sub3.hit.addEventListener(MouseEvent.CLICK, onSubClick);
      
      _sub1.setActiveSelected(true);
      
      SWFAddress.addEventListener( SWFAddressEvent.CHANGE, handleSWFAddressChange );
      
      _currentIndex = 1;
      
      handleSWFAddressChange();
      
		}
		
		//--------------------------------------
		//  PRIVATE VARIABLES
		//--------------------------------------
		private var _currentIndex:Number;
		private var _currentSub:MovieClip;
		private var _currentPanel:MovieClip;
		//--------------------------------------
		//  GETTER/SETTERS
		//--------------------------------------
		
		//--------------------------------------
		//  PUBLIC METHODS
		//--------------------------------------

		public override function intro( ):void
		{
			TweenMax.from( this, 0.4, { auto:0, onComplete: dispatchIntroComplete } );
		}

		public override function outro( ):void
		{
			TweenMax.to( this, 0.4, { alpha: 0, onComplete: dispatchOutroComplete } );
		}
		private function handleSWFAddressChange( $event:SWFAddressEvent = null ):void
		{
		  var newPage:String = SWFAddress.getValue( );
		  
		  trace("new page is " + newPage);
		  
		  TweenMax.to( this["_panel" + _currentIndex], 0.4, { autoAlpha:0 } );
		  this["_sub" + _currentIndex].setActiveSelected(false);

			switch( newPage )
			{
			  case "/how_to_buy":
			  case "/how_to_buy/":
			    _currentIndex = 1;
			  break;
			  
			  case "/how_to_buy/existing_customers":
			  case "/how_to_buy/existing_customers/":
			    _currentIndex = 2;
			  break;
			  
			  case "/how_to_buy/partner":
			  case "/how_to_buy/partner/":
			    _currentIndex = 3;
			  break;
			}
			
			
			TweenMax.to( this["_panel" + _currentIndex], 0.4, { autoAlpha:1 } );
		  this["_sub" + _currentIndex].setActiveSelected(true);
		}
		
		private function onSubClick($e:MouseEvent){
		  
		  
		  SWFAddress.setValue( $e.target.parent.url );
		  
		  //trace($e.target.parent.value + "   " +_currentPanel);
		  //TweenMax.from( _currentPanel, 0.4, { alpha:1 } );
		  
		}
		
		function clickLink($e:MouseEvent){
		  
		  var url:String = $e.target.value;
      var request:URLRequest = new URLRequest(url);
      try {
        navigateToURL(request, '_blank'); // second argument is target
      } catch (e:Error) {
        trace("Error occurred!");
      }
	  
	  
	  function printContent(evt:MouseEvent) {
	var printJob:PrintJob = new PrintJob();
	
	if (printJob.start()) {
		
		if (content_mc.width>printJob.pageWidth) {
			content_mc.width=printJob.pageWidth;
			content_mc.scaleY=content_mc.scaleX;
		}
		
		printJob.addPage(content_mc);
		printJob.send();
	}
}
	  
	  
	  
		}
		
	}
	
}