kozel
06-26-2005, 10:06 AM
Hi,
my loader loads jpegs into different movie clips:
MCLoader.loadClip("picture1.jpg",first_mc);
MCLoader.loadClip("picture2.jpg",second_mc);
MCLoader.loadClip("picture3.jpg",third_mc);
is has a listener to run functions. I want to resize each picture loaded independently, I'm trying to use:
loadListener.onLoadInit = function (first_mc:movieClip) {
_width = 100;
_height = 100;
};
loadListener.onLoadInit = function (second_mc:movieClip) {
_width = 200;
_height = 200;
};
loadListener.onLoadInit = function (third_mc:movieClip) {
_width = 300;
_height = 300;
};
etc... Using the movie clip name as a parameter, but it seems to resize them all to same size! How should I tell AS which picture to resize?
Thanks
my loader loads jpegs into different movie clips:
MCLoader.loadClip("picture1.jpg",first_mc);
MCLoader.loadClip("picture2.jpg",second_mc);
MCLoader.loadClip("picture3.jpg",third_mc);
is has a listener to run functions. I want to resize each picture loaded independently, I'm trying to use:
loadListener.onLoadInit = function (first_mc:movieClip) {
_width = 100;
_height = 100;
};
loadListener.onLoadInit = function (second_mc:movieClip) {
_width = 200;
_height = 200;
};
loadListener.onLoadInit = function (third_mc:movieClip) {
_width = 300;
_height = 300;
};
etc... Using the movie clip name as a parameter, but it seems to resize them all to same size! How should I tell AS which picture to resize?
Thanks