Hi,
You might need to look into MovieClipLoader(), so you can do things with your images after they have loaded, with loadmovie() you have less control over thembasically this example needs a button called "MyButton" and an empty moviclip both on stage called "ImageHolder"PHP Code:TheLoader = new MovieClipLoader();
TheImageLoad = new Object();
TheLoader.addListener(TheImageLoad);
TheImageLoad.onLoadStart = function()
{
ImageHolder._visible = false;
};
TheImageLoad.onLoadProgress = function()
{
// intentionally empty
};
TheImageLoad.onLoadComplete = function()
{
// intentionally empty
};
TheImageLoad.onLoadInit = function()
{
ImageHolder._visible = true;
ImageHolder.smoothing = true;
ImageHolder._width = 300;
ImageHolder._height = 200;
};
MyButton.onPress = function(){
TheLoader.loadClip("images/picture.jpg",ImageHolder);
}




Reply With Quote