Robert Brenstein wrote: > Thanks guys. This is exactly what I need. I did not catch that the > filename property is actually a filepath that allows me to swap the > image content dynamically (and the image object resizes accordingly). > > I do not want to import these images. These are external files and I > just need to acquire their sizes dynamically. The MC version of my HC > script is thus (having already created an invisible image object): > > set the filename of image "tmp" to fpath > get the formattedheight of image "tmp" > get the formattedwidth of image "tmp" > set the filename of image "tmp" to empty
FWIW, the width and height properties should return the same dimensions as the formattedwidth and formattedheight, providing the image object in question has it's lockLocation property set to false. I love the self-consistency of MetaTalk. Raney's a hard person to please when it comes to suggesting language features, but given how many funky syntax workarounds he's managed to avoid it seems well worth his stringent evaluation process -- the result is arguably the most full-featured xTalk, and with the fewest syntactic exceptions to keep in minds when using it. -- Richard Gaskin Fourth World Media Corporation Custom Software and Web Development for All Major Platforms Developer of WebMerge 1.9: Publish any Database on Any Site ___________________________________________________________ [EMAIL PROTECTED] http://www.FourthWorld.com Tel: 323-225-3717 AIM: FourthWorldInc _______________________________________________ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
