How ActiveX for Animation Works

  Prev Next  
        Entertainment | Animation

What is ActiveX?

ActiveX for animation enables different software applications to share information.
ActiveX for animation enables different software applications to share information.
Microsoft product screen shot reprinted with permission from Microsoft Corporation.

ActiveX is a Microsoft-created technology that enables different software applications to share information and functionality. ActiveX only works with Microsoft applications like Word, Excel, Internet Explorer and PowerPoint, and will only work on a computer running the Windows operating system.

The idea behind ActiveX is that software applications don't need to be built from scratch. Early on at Microsoft, programmers realized that many of the same functions could be shared among different applications. For example, a spell checker is just as useful in a word processing program like Word as in an e-mail application like Outlook Express [source: Surf the Net Safely]. Instead of writing two separate versions of code for the same spell-checker, they created a spell checker object. This object lives on the Windows operating system. When any Windows application needs spell-checking functionality, it calls on the spell-checker object.

ActiveX technology began as object linking and embedding (OLE). In the early days of Windows, OLE allowed for simple cross-application functions like cut and paste. OLE evolved into the idea of a compound object module (COM). The spell checker is an example of a COM. It's an independent module, or applet, that can be accessed from any Windows application. COMs also allow for one program to be embedded into another. For example, you can insert and edit an Excel spreadsheet from within Word without ever opening the Excel application [source:].

ActiveX and COM are essentially the same thing. An ActiveX control is another name for one of these "objects," "modules" or "applets" -- like the spell checker -- that run within larger applications [source: Surf the Net Safely].

ActiveX controls are mostly talked about in reference to Internet Explorer, the default Web browser for the Windows operating system. Let's say you open a Web page with Internet Explorer that contains video clips encoded as Windows Media files (.wmv). Internet Explorer comes pre-loaded with an ActiveX control that allows for Windows Media files to be played directly in the Web page [source: Mozilla]. In other words, you don't have to launch the Windows Media Player application separately. The ActiveX control accesses the functionality of the Windows Media Player behind the scenes and plays back the file in the browser window.

Another common ActiveX control plays Flash files (.swf). Internet Explorer can't play Flash files by itself. That's something only the Adobe Flash Player can do. But if a whole Web site is programmed in Flash, you don't want to launch the Flash Player to view it. So Internet Explorer gives you the option of downloading and installing the Flash ActiveX Control. The Flash ActiveX Control automatically detects when a site contains Flash files. It then accesses the Flash player functionality at the operating system level and plays the files directly in the browser.

ActiveX controls are small applications written in common programming languages like Visual Basic and C++. They're similar in function to Java applets, which are small programs that run within Web browsers. Applications that support ActiveX controls are called ActiveX containers. Each ActiveX control contains a unique number called a class identifier (CLSID). ActiveX controls that work within Internet Explorer are usually associated with a certain file or media type. This way Internet Explorer knows which control to launch -- Flash, Adobe Reader (for .PDFs), Windows Media Player -- for each type of file.

Now let's look at how you can use ActiveX to embed animations in a Web page.