How to handle one images with many images inside

Jim Lambert jiml at netrin.com
Tue Jul 28 13:29:36 EDT 2009


On Jul 28, 2009, at 10:00 AM, Josep wrote:

> I found some resources images in png
> that inside the file have the three status for the button. Now I cut  
> and
> export to three diferents files each of the status images and asign  
> them.
> The question is if is posible handle in some way the dinamic asign  
> of one
> part of the image to the status of the button. I don't know if I  
> explain
> myself... :)

Josep,

One possiblility is to turn the png into an animatedGIF.
Then each frame can be scripted to reflect the current button state:
		set the currentFrame of image "buttonStates" to 1

Of course, Gifs don't always look as nice as pngs!

Jim Lambert


More information about the use-livecode mailing list