function loadContent(imageNum:Number, xNum:Number, yNum:Number, zoomNum:Number):Void { hascalled = false; //trace(" imageNumber = " + imageNumber); loadDynamicText(imageNum); //var myTextObject:InsertText = new InsertText(_root, textField_txt, textURL, text_up_btn, text_down_btn); zoomViewer_1.setImagePath("http://www.nrm.org/collection_gallery/" + contentArray[imageNum]); zoomViewer_1.setInitialX(xNum); zoomViewer_1.setInitialY(yNum); zoomViewer_1.setInitialZoom(zoomNum); zoomViewer_1.updateView(); //var myCallbackID = _root.zoomViewer_1.registerCallback("DownloadComplete","ZoomifyViewerCompleteCallback"); loading_graphic_mc._visible = true; zoomViewer_1.registerCallback("DownloadComplete","ZoomifyViewerCompleteCallback"); //zoomViewer_1.registerCallback("View", ""); //screen_container_mc.pull_down_screen_mc. } function displayView() { trace("X = " + zoomViewer_1.getX()); trace("Y = " + zoomViewer_1.getY()); trace("Zoom = " + zoomViewer_1.getZoom()); } show_data_btn.onRelease = function() { trace("x = " + zoomViewer_1.getX() + "y = " + zoomViewer_1.getY() + "zoom = " + zoomViewer_1.getZoom()); } function init():Void { //var myTextObject:InsertText = new InsertText(_root, textField_txt, "http://www.nrm.org/exhibition_media/AlParker/AlParkerCopy/Parker_1.html", text_up_btn, text_down_btn); dynamic_text_txt.htmlText="Click on the Thumbnail Images Below"; //Learn more about the famous Norman Rockwell paintings by clicking on the thumbnails below."; zoomViewer_1.setImagePath("http://www.nrm.org/collection_gallery/S567FreedomFromWant"); zoomViewer_1.setInitialX(-.045); zoomViewer_1.setInitialY(.177); zoomViewer_1.setInitialZoom(35); zoomViewer_1.updateView(); }