Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

How to use Shockwave ActiveX in MFC?

Posted on 2001-07-25
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 200 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ODBC Connection Logging, ADO.NET 6 69
unable to delete all specified values regedit 38 560
sum67 challenge 35 108
canBalance challenge 34 98
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

828 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