<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="actionScriptFunction()" >
	<mx:Script>
		<![CDATA[
		import flash.external.*;

		 
 	public function init():void
	{
	 myLoader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
  	}
	private function ioErrorHandler(event:IOErrorEvent):void {
            trace("ioErrorHandler: " + event);
        }
	public function actionScriptFunction():void
	{
		init()
 	 
	 	myLoader.source = Application.application.parameters.automationswfurl;
      }

]]>
	</mx:Script>
	
	 <mx:SWFLoader  id="myLoader"   width="100%" height="100%" preinitialize="myLoader.loaderContext = new LoaderContext(false, ApplicationDomain.currentDomain)" >
	</mx:SWFLoader>
	
	
</mx:Application>
