On Fri, 15 Oct 1999, Karl Becker wrote:
> Real fast: how can I speed up loading of gif images? I'm guessing the
> "prepare" command will do nothing, since I'm using the gifs (which are
> animated, and only have 4/100ths interframe delay) as "image"s. They're
> accessed using the fileName where it just goes "thefolder/thepic.gif"
> without the excess hd info... not sure how else I could speed it up...
> anyway to store these gifs in memory and put them on an image extra
It's not clear exactly what you're trying to do, but decompressing
images *does* take time, and it's not practical to do something like
change the fileName property on the fly to do animation unless the
images are very small or the target machine very fast.
Instead, create one image object for each image you want to display
(import or use the fileName property, it doesn't matter), hide them,
then set the icon property of a button to the ids of those image
objects as needed. If different buttons need to display different
frames of a given image, you'd probably be better off storing each
frame in a separate image and handle changing the frames yourself with
"send .. in" too.
Regards,
Scott
> quick? Thanks!
>
>
> Karl Becker, [EMAIL PROTECTED]
> http://www.btigate.com/~funkboy/
> Featuring: Tiger's Eye Casino,
> MacBasketball, and The Fishin' Hole!
>
Scott Raney [EMAIL PROTECTED] http://www.metacard.com
MetaCard: You know, there's an easier way to do that...