package {
import flash.display.*;
import flash.net.*;
import flash.events.*;
public class Main extends Sprite {
private var loader:Loader;
public function Main( ) {
loader = new Loader( );
loader.load(new URLRequest("http://yoursite.com/Module.swf"));
addChild(loader);
loader.addEventListener(MouseEvent.CLICK, clickListener);
}
private function clickListener (e:MouseEvent):void {
trace("Module.swf was clicked");
}
}
}
|