Quantcast
Channel: VBForums - ASP, VB Script
Viewing all articles
Browse latest Browse all 688

Using ShockwaveFlashObjects in VB Script

$
0
0
This has been bothering me for quite some time now, I hope someone here can help me.

In Windows Notepad I save a blank file as "hello.vbs"

Then I enter this:

Code:

Set test = CreateObject("ShockwaveFlashObject")
Set test = Nothing

Save and then I double click hello.vbs to run it. I get the following error:

Code:

Script: C:\hello.vbs
Line: 1
Char: 1
Error: ActiveX component can't create object: 'ShockwaveFlashObject'
Code: 800A0AD
Source: Microsoft VBScript runtime error

Why? I have the flash plugin installed on my computer.

I've tried this: regsvr32 C:\WINDOWS\system32\Macromed\Flash\Flash32_11_5_502_149.ocx

It says that it succeeded, still I get the same error. I've also tried this in hello.vbs:

Code:

Set test = CreateObject("AxInterop.ShockwaveFlashObjects")
Set test = CreateObject("ShockwaveFlashObjects")
Set test = CreateObject("AxShockwaveFlashObjects")
Set test = CreateObject("ShockwaveFlashObject")
Set test = CreateObject("Flash32_11_5_502_149")

None of it works! I'm very annoyed, what am I missing here? All I want to do is load a flash file into VBScript.

My end goal is to try and create a screenshot of the flash file in VBScript once it has loaded. Please help!

Viewing all articles
Browse latest Browse all 688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>