[編集] コードを参照してください。画像を読み込めますし、ムービー クリップも読み込めます。画像は、ユーザー入力に合わせてズームおよびパンします。ただし、ムービークリップ (mcInfo) は、画像と一緒にズームおよびパンできるように、画像上のポイントに「アタッチ」する必要があります。この理由は、画像が多くの異なる製品で構成される大規模な灌漑設備であるためです。情報アイコン (mcInfo) は、その製品の情報を表示するためのクリック可能なムービークリップである必要があります。画像にはこれらのアイコンがたくさんあります。ただし、ユーザーが表示したい製品に関連付ける必要があります。
var spImage:Sprite = new Sprite(); //load image to sprite "I think"
board.addChild(spImage);
function initPic(e:Event):void {
infoBox.text = "";
infoBox.visible = false;
image = Bitmap(loader.content);
minScale = boardWidth/image.width;
image.scaleX = minScale;
image.scaleY = minScale;
spImage.addChild(image);// the loaded image
spImage.addChild(mcIn); // custom zoom in cursor
spImage.addChild(mcOut); // custom zoom out cursor
spImage.addChild(mcInfo); //information icon. This is the movieclip that I need to set at a point
spImage.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
stage.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, initPic);
loader.contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS, updateInfo);
loader = null;
board.filters = [ new DropShadowFilter() ];
spImage.addEventListener(MouseEvent.CLICK, zoom);
}