PDA

View Full Version : auto resize


uy4k
05-07-2002, 02:40 AM
Can anyone help me? How to make loading image and auto resize depend on image size like http://www.ci.davis.ca.us/pw/cip/mapflash.cfm?

Jesse
05-07-2002, 02:10 PM
Checkout the set property and get property tutorials. The best way I can think of is to have a two frame looping movie clip which tests the image MC's width and height. If they are greater than the boarder then it increases the border size half way, to give that scaling up impression. Try it yourself first.

uy4k
05-10-2002, 04:23 AM
How to get image width and height?. When I try to getproperty of MC that load image, its not actual image size. Please, check the attachment.

Jesse
05-10-2002, 07:48 AM
Pop this on the target clip:
onClipEvent (load) {
_root.width = this._width;
_root.height = this._height;
}

uy4k
05-10-2002, 08:41 AM
It's works!

Thank's Jesse ......