Home     |     Photoshop    |     Flash General    |     Flash Actionscript    |     Dreamweaver    |     Macromedia Fireworks


Cervo Technologies
The Right Source to Outsource

Macromedia Flash Actionscript

MovieClipLoader openning JPG Image


Hello, Im openning this JPG image in the Flash using MovieClipLoader. Eventough
the image has the same size as the component I use to display it... It opens
bigger (so I cannot see most of it).

 loadPic("C:/map.jpg", "picMap");
 /*  Loader  */
 function loadPic(image, target) {
        var mcl = new MovieClipLoader();

        mcl.loadClip(image,target+".pic");

 }

what's the instance name of your target movieclip?  if it's picMap.pic, pass picMap (without quotes) to your target parameter in loadPic() and use target.pic in your loadClip() method.
Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc