00001
00002
00003
00004
00005
00006
00007
00008 import mx.transitions.*;
00009 import mx.xpath.XPathAPI;
00010 import amg.*;
00011 import flash.external.*;
00012
00013
00014 class amg.LightroomMovieClipLoader extends MovieClipLoader {
00015 private var _m_target:MovieClip;
00016 private var _m_url:String;
00017
00018 public function initLightroomMovieClipLoader( ):Void {
00019 _root.LightroomMovieClipLoaderRequestReady = function( id:String ):Void {
00020 var idNum:Number = Number( id );
00021 var loader = _root.LightroomMovieClipLoaderHolder[ idNum ];
00022 loader.LightroomMovieClipLoaderClipLoaded();
00023 _root.LightroomMovieClipLoaderHolder[ id ] = null;
00024 }
00025 var methodName:String = "LightroomMovieClipLoaderRequestReady";
00026 var instance:Object = null;
00027 var method:Function = _root.LightroomMovieClipLoaderRequestReady;
00028 ExternalInterface.addCallback(methodName, instance, method);
00029
00030 _root.LightroomMovieClipLoaderHolder = new Object();
00031 _root.LightroomMovieClipLoaderRequestCount = 1;
00032 }
00033
00034 public function loadClip( url:String, target:MovieClip ) {
00035 _m_url = url;
00036 _m_target = target;
00037 try {
00038 if( _root.LightroomMovieClipLoaderRequestCount == null ) {
00039 initLightroomMovieClipLoader();
00040 }
00041 var requestID = _root.LightroomMovieClipLoaderRequestCount;
00042 _root.LightroomMovieClipLoaderRequestCount++;
00043 ExternalInterface.call( 'loadClip', url, requestID );
00044 _root.LightroomMovieClipLoaderHolder[ requestID ] = this;
00045 }
00046 catch( x ) {
00047 trace( x );
00048 }
00049 return
00050 }
00051
00052 public function LightroomMovieClipLoaderClipLoaded() {
00053 super.loadClip( _m_url, _m_target );
00054 }
00055 }
00056
00057
00058
00059