Go Premium for a chance to win a PS4. Enter to Win


How to use Shockwave ActiveX in MFC?

Posted on 2001-07-25
Medium Priority
Last Modified: 2013-11-20
Hello, everyone:
 i want to add Shockwave ActiveX to my VC Project, but after i insert this activex into my project, i don't know how to initialize this activex and how to play a flash file. please help me.



Question by:wintch
  • 3

Accepted Solution

MaheshSundararaman earned 600 total points
ID: 6321027
Dear Wintch

U need to have installed the Windows Media SDK to play flshfile types..

Playback of the Macromedia Shockwave Flash animation is controlled by playback of Sbnflash.asf. The two main elements on the page are Shockwave Flash and Windows Media Player. As Sbnflash.asf is played, Windows Media Player sends script commands at important synchronization points to the Web page. A ScriptCommand event is generated and a control command is sent to the Shockwave Flash object. For example, if the script command type string is "text" and the command string is "start", the Shockwave Flash Play method is invoked:

EVENT="ScriptCommand(ScType, ScCmd)">
   if(navigator.appName == "Microsoft Internet Explorer"){
       if (ScType == "text") {
           if (ScCmd == "start")
           else if (ScCmd == "pause")
           else if (ScCmd == "resume")
           else if (ScCmd == "stop") {

Even though Macromedia Shockwave Flash animations are usually created as stand-alone files, there are times when you can enhance your presentation by taking advantage of the streaming audio and video capabilities available with Windows Media Services. Shockwave Flash content is played back as it is downloaded from a standard HTTP server. While that type of server is fine for text, animations, and graphics, a server running Windows Media Services can specifically handle the special needs of streaming media. By using Shockwave Flash to handle graphic elements and animation downloaded from an HTTP server, and Windows Media Services to handle streaming audio and video, you help ensure that playback is smooth and of the highest quality.

File size is also a consideration when playing a Shockwave Flash file. Shockwave Flash does a good job with many graphics, interactive elements, and short sound chunks. But in a 30-minute presentation, for example, consider using Windows Media Services to handle the audio and Shockwave Flash the playback of short animation sequences. Use Shockwave Flash audio for handling short sounds attached to screen click events; use Windows Media Services for long, produced tracks.


Expert Comment

ID: 6446602
wintch - Date Last Logged In: 08/21/01

You have asked 6 questions and have chosen not to finalize any one of them and award the experts who helped you.  Please return to ALL your open questions to update and finalize them.  I will be posting this in all your open questions and monitoring each of them for completion:

It's time to clean up this topic area and that means taking care of this question. Your options at this point are:
1. Award points to the Expert who provided an answer, or who helped you most. Do this by clicking on the "Accept Comment as Answer" button that lies above and to the right of the appropriate expert's name.
2. PAQ the question because the information might be useful to others, but was not useful to you. To use this option, you must state why the question is no longer useful to you, and the experts need to let me know if they feel that you're being unfair.
3.  Ask Community Support to help split points between participating experts.  Just comment here with details.
4.  Delete the question because it is of no value to you or to anyone else.  To use this option, you must state why the question is no longer useful to you, and the experts need to let me know if they feel that you're being unfair.
If you elect for option 2, 3 or 4, just post comment with details here and I'll take it from there.  We also request that you review any other open questions you might have and update/close them.  Display all your question history from your Member Profile to view details.
Hi Experts:
In the event that the Asker does not respond, I would very much appreciate your opinions as to which Expert ought to receive points (if any) as a result of this question.  Likewise, you can also suggest that I PAQ or delete the question.
Experts, please do not add further "answer" information to this question.  I will be back in about one week to finalize this question.
Thank you everyone.
Moondancer :)
Community Support Moderator @ Experts Exchange
P.S.  Engineering has been advised about the error in the comment date/time sort order for year 2000 questions, they're in userID order instead.  REGARDING POINTS, Guidelines and more:  http://www.experts-exchange.com/jsp/cmtyHelpDesk.jsp  

Expert Comment

ID: 6786563
wintch logged in as recently as 01/29/02 and chose not to update and finalize the open questions, despite
an August request already do to do.  I will post this in them all.

I will award this question directly, if wintch chooses not to within the next 7 days.  Please comment as a reminder, there are thousands of these ABANDONED questions with which I am dealing.

Thank you,

Community Support Moderator @ Experts Exchange

Expert Comment

ID: 6792395
Thanks for returning and updating this question.  Can you please tell me why you chose a "B" versus an "A" grade here?  It is always appreciated when grades are less than an A to receive comments as to why so that both experts and future PAQ readers can be advised.

If this was in error, let me know so I can correct this.

Thank you.

Community Support Moderator @ Experts Exchange

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

926 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question