Hello
This is my first post here and I already have a problem.
I have a class called Gallery and within this class I want to generate thumbnails.
I want to load the thumbnails with only one line of code to make it easy:
this._mclContent.loadClip("mypicture.jpeg", "this.thumbs.myMC");
var _mclContent:MovieClipLoader;
var _oListener:Object;
function Gallery() {
this._mclContent = new MovieClipLoader();
this._oListener = new Object();
this._oListener.onLoadStart = function(target_mc){
trace(target_mc+"loading has started!");
};
this._oListener.onLoadProgress = function(target_mc, loadedBytes, totalBytes) {
};
this._oListener.onLoadInit = function(target_mc){
trace(target_mc+" has finished loading");
};
this._oListener.onLoadComplete = function(target_mc){
};
this._oListener.onLoadError = function(target_mc, errorCode){
trace(target_mc+" did not properly load: "+errorCode);
};
this._mclContent.addListener(this._oListener);
this.createThumbnailObjects();
}
function createThumbnailObjects(){
trace("start");
this._mclContent.loadClip("mypicture.jpeg", "this.thumbs.myMC");
}
The problem is, that the code only traces “start” and not loads the clip. :hr: