Which uses more memory - Import as Control vs Referenced Control?
Jeanne A. E. DeVoto
revolution at jaedworks.com
Wed Apr 6 10:05:54 EDT 2005
At 9:08 AM -0400 4/6/05, Stgoldberg at aol.com wrote:
>I am trying to decide whether or not to use "Import as Control" or
>"Referenced Control" for importing jpegs into a Revolution program.
>On the one hand,
>I'd like to avoid putting out a standalone program with a separate folder
>containing all of the pictures (Referenced Control), but I'd also like to
>conserve disc space for the standalone application. I understand
>that "Referenced
>Control" simply uses the same photo repeatedly without taking up
>extra memory for
>each time the photo is used. Does "Import as Control" take up additional
>memory each time the same photo is duplicated in the program? Thanks.
Yes.
If you're displaying the same image in more than one place, you may
want to make it the icon of a button instead. (Check the icon
property in the docs.) An icon can be of any size, and a transparent
button doesn't display a button frame - only the icon image is
visible. You can use the same image as the icon of multiple buttons,
and the image is not duplicated on disk.
--
jeanne a. e. devoto ~ revolution at jaedworks.com
http://www.jaedworks.com
More information about the use-livecode
mailing list