summaryrefslogtreecommitdiffstats
path: root/Bachelor/CCNA4/en_CCNA4_v30/Dispatcher.vbs
blob: d299c17014982a4ce8540a97559062863ac9cbaf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

' 

'  Macromedia Flash Dispatcher -- a scriptable detector for Flash Player

' 

' 

'  copyright (c) 2000 Macromedia, Inc.

' 

'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''





' Check for the Flash ActiveX control.

'

' This script will be ignored by browsers that do not support

' VBScript (although Microsoft Internet Explorer will warn the

' user that a script in an unsupported language has been

' encountered if the user has checked "Show unsupported scripting

' language errors" in Preferences->Web Browser->Web Content).

'

' This technique due to Jeff Brown and Rafael M. Mu�oz of

' Microsoft Corporation.  Version testing adapted from Macromedia

' Flash Technical Note #12853.



Private i, x



On Error Resume Next



MM_FlashControlInstalled = False



For i = 6 To 1 Step -1

   Set x = CreateObject("ShockwaveFlash.ShockwaveFlash." & i)



   MM_FlashControlInstalled = IsObject(x)



   If MM_FlashControlInstalled Then

       MM_FlashControlVersion = CStr(i)

       Exit For

   End If

Next