Full Version: Flash of background colours during animation of a GIF
UtterAccess Discussion Forums > Microsoft® Access > Access Forms
OzzyGaz
Dear all

I am going insane. I am animating a series of transparent GIF images over a textured form background image using the code below (images are on top of each other). When i run the form the image flashes the colour of the form background when each image changes (flashes are the colour of whatever the background is set to). The images are transparent so i don't think that is the problem. The thing i don't understand is that after a couple of cycles the flashes stop and the animation works perfectly and does not flash again? Anyone have any clues???

It has taken me ages to sort out a decent image and then export it to a series of images and then sort out the transparency so i am not going to let this one beat me.

Any help will really reaaly be appreciated

OzzyGaz crazy.gif

Private Sub Form_Open(Cancel As Integer)
Counter = 0
End Sub

Private Sub Form_Timer()

If Counter = 20 Then
Counter = 0
End If

Me("Image" & CStr(Counter)).Visible = True

If Counter = 0 Then
Me.Image19.Visible = False
Else
Me("Image" & CStr(Counter - 1)).Visible = False
End If

Counter = Counter + 1
End Sub
OzzyGaz
For anyone who was interested i solved the problem. I had the timer/refresh rate set too high.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.