This is gonna sound so primative since I've been dabling in image preloaders and galleries and all sorts now but what I really wanted was a way, in as little code as possible (just a short function then) to make the process of loading an image into an MC eg
var mc = this.createEmptyMovieClip("holder", 10);
mc.loadMovie("images/image1.jpg");
but to get flash to wait and find the size of the image and adjust it to fit the MC first rather than auto adjusting the MC to fit it.
I know you can hack your way to doing this with ondata and onload and stuff but I'm looking for the cleanest simplest way to do it with --- Flash MX 6 ---.
Thanks for any examples. I'll continue trawling for how I'm sure I saw it done relatively simply before somewhere
_________________________________
Leozack
var mc = this.createEmptyMovieClip("holder", 10);
mc.loadMovie("images/image1.jpg");
but to get flash to wait and find the size of the image and adjust it to fit the MC first rather than auto adjusting the MC to fit it.
I know you can hack your way to doing this with ondata and onload and stuff but I'm looking for the cleanest simplest way to do it with --- Flash MX 6 ---.
Thanks for any examples. I'll continue trawling for how I'm sure I saw it done relatively simply before somewhere
_________________________________
Leozack
Code:
MakeUniverse($infinity,1,42);