How to clear buffer/ remove previous image

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Chibling
Posts: 21
Joined: Thu Jul 16, 2009 9:05 pm

How to clear buffer/ remove previous image

Post by Chibling » Mon Jul 27, 2009 10:51 pm

Hello potential helper,

I have a slider that changes an imagefield as it slides,

My problem is that the first image is contaminating the next images such that it appears in concert with my next image (images are BMP files).


Is there a way to refresh the buffer or adjust a setting to prevent the previous image from appearing (perhaps disabling images/ enabling one per trial)

I am a big novice,

Any sort of 'message' or trick would be greatly appreciated,

-Thanks in advance

SparkOut
Posts: 2947
Joined: Sun Sep 23, 2007 4:58 pm

Post by SparkOut » Mon Jul 27, 2009 11:12 pm

Not sure how you're using the slider to change the image. Are you resetting the filename of the image field? Or altering the imageData of the field? Setting the filename of a field to empty should clear it, but then setting the filename of a field to something new should change the displayed image too.
Can you post a little example of your script to show what it is that you're doing and how it's working (or not working)?

Post Reply