Hello,
I would like the following code to detect whether or not the width of the jpg is larger than it's height, any idea how?
Thank you
imgUrl = 'photo1.jpg';
loadMovie(imgUrl, loader_mc);
if (_root.getBytesLoaded() != _root.getBytesTotal()) {
mask_mc.stop;
gotoAndPlay(1);
} else {
mask_mc.gotoAndPlay(2);
trace(photo1.jpg._width);/
/returns undefined
trace(loader_mc._height);/
/returns 1, this is the hieght of the clip set in the authoring environment
}
Start Free Trial