riaxe snippets
Posts tagged flashlite
loadMovie loadClip external image height width issue in AS2 [Solved]
Aug 5th
Recently while working on an AS2 project in flashlite we had a issue of getting the height and width of a dynamically loaded external image from a URL. Here is the solution we formulated:
var mclListener:Object = new Object();
mclListener.onLoadInit = function(targetmc:MovieClip) {
trace(“movie loaded”);
trace(targetmc._width);
};
var imagemcl:MovieClipLoader = new MovieClipLoader();
imagemcl.addListener(mclListener);
imagemcl.loadClip(URL, mc);