conditional resizing of an url-referenced image object
Scott Rossi
scott at tactilemedia.com
Thu May 13 02:31:14 EDT 2010
Recently, Nicolas Cueto wrote:
> I don't know how to use Rev to get the width (or height) of an
> image that is on my web-server.
>
> If anyone knows, or if there's an alternate/better solution than what
> I've thought up, I'd appreciate the help.
If you lock the screen before setting the fileName of the image, you could
size the image properly before displaying it, using the formattedWidth
porperty, and then reposition the image if necessary. Or maybe do the
sizing offscreen before showing the image.
set width of img "displayImage" to formattedWidth of img "displayImage"
Regards,
Scott Rossi
Creative Director
Tactile Media, UX Design
More information about the use-livecode
mailing list