Private i, x

On Error Resume Next

FlashControlInstalled = False

For i = 8 To 1 Step -1
   Set x = CreateObject("ShockwaveFlash.ShockwaveFlash." & i)

   FlashControlInstalled = IsObject(x)

   If FlashControlInstalled Then
   	   FlashControlVersion = CStr(i)
       Exit For
   End If
Next