• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1055
  • Last Modified:

Using ActiveX / OCX Component in Flash with Action Script

I have a Magtek credit card reader. It included an ActiveX / OCX component and VBScript sample code. Can I use the ActiveX control in Flash MX with ActionScript? If so please give an example.

Here is a short VB.NET Example of using the component.

Start Component with Public WithEvents KbdWedge As AxKbdWedgeOCX.AxKbdWedge
      Private Sub KbdWedge_CardDataChanged(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles KbdWedge.CardDataChanged
            Dim Status As Object
        KbdWedge.PortOpen = False
        txtFirst.Text = KbdWedge.GetFName()
            txtLast.Text = KbdWedge.GetLName()
            txtPAN.Text = KbdWedge.FindElement(2, ";", 0, "=")
            txtMonth.Text = KbdWedge.FindElement(2, "=", 2, CStr(2))
            txtYear.Text = KbdWedge.FindElement(2, "=", 0, CStr(2))
            Call KbdWedge.ClearBuffer()
        KbdWedge.PortOpen = True
      End Sub

I need to do the above with ActionScript in FlashMX if possible.

  • 2
1 Solution
I don't think you can.

you can embed the flash into an app designed with c++, visual c++ vb6, delphi etc, (using the flash.ocx), and work through it that way - passing vars between the 2 parts of the app, but on flash itself I don't think possible.


Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now