Access the answers to your technology questions today.
Subscribe Now
30-day free trial. Register in 60 seconds.
What Makes Experts Exchange Unique?
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.
Try it out and discover for yourself.
Subscribe Now
30-day free trial. Register in 60 seconds.
Join the Community
Give a Little. Get a Lot.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Join the Community
by: DanRollinsPosted on 2009-11-04 at 15:03:03ID: 25745041
Some options are described here:
(from http://www.flyskysoft.com )
I made an .swf (ShockWave Flash) animation of our company logo and put it in the banner of our help files. It behaves perfectly in uncompiled help (that is, web-based html pages) but when I compile a file, the graphic is missing from the .chm file.
6D-11cf-96 B8-4445535 40000" base=http: //active.m acromedia. com/flash2 /cabs/ swfl ash.cab#ve rsion=4,0, 0,0 ave-flash" cromedia.c om/shockwa ve/downloa d/index.cg i? P1_Prod_ Version=Sh ockwaveFla sh">
6D-11CF-96 B8-4445535 40000" id="ShockwaveFlash1" width="976" height="621">
6D-11cf-96 B8-4445535 40000" base=http: //active.m acromedia. com/flash2 /cabs/ swfl ash.cab#ve rsion=4,0, 0,0 ave-flash" cromedia.c om/shockwa ve/downloa d/index.cg i? P1_Prod_ Version=Sh ockwaveFla sh">
Here's the code that is inserted in the html file:
<OBJECT classid="clsid:D27CDB6E-AE
code
ID=logo WIDTH=200 HEIGHT=72>
<PARAM NAME=movie VALUE="logo.swf">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=loop VALUE=false>
<EMBED src="logo.swf" loop=false quality=high
WIDTH=200 HEIGHT=72 TYPE="application/x-shockw
PLUGINSPAGE="http://www.ma
</EMBED>
</OBJECT>
Notes:
Be sure you are online if you use such code. Otherwise the swf file can not be displayed normally in the html file.
If you are not online and the Flash Player has been installed in your computer, you can use the HTML code below to show a Flash animation in an HTML file.
<object classid="clsid:D27CDB6E-AE
<param name="_cx" value="25823">
<param name="_cy" value="16431">
<param name="FlashVars" value="-1">
<param name="Movie" value="mymovie.swf">
<param name="Src" value="mymovie.swf">
<param name="WMode" value="Window">
<param name="Play" value="-1">
<param name="Loop" value="-1">
<param name="Quality" value="High">
<param name="Menu" value="-1">
<param name="Base" value="mymovie.swf">
<param name="AllowScriptAccess" value="always">
<param name="Scale" value="ExactFit">
<param name="DeviceFont" value="0">
<param name="EmbedMovie" value="0">
</object>
You can change the value of width and height to specify the size of the movie.
Answer from us:
Actually, when you compile it, the swf file will not be included in the .chm file automatically by the compiler. So the swf file can not be displayed because it is not existent in the .chm file.
There is a gentle way to fix the problem.
Copy the HTML code below and paste it into the html file:
<a href="logo.swf"></a> You should change the swf file's name according to your situation. The HTML code will make the compiler automatically embed the swf file in the .chm file.
You can place the HTML code above the OBJECT tag. Then the whole HTML code should be:
<a href="logo.swf"></a>
<OBJECT classid="clsid:D27CDB6E-AE
code
ID=logo WIDTH=200 HEIGHT=72>
<PARAM NAME=movie VALUE="logo.swf">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=loop VALUE=false>
<EMBED src="logo.swf" loop=false quality=high
WIDTH=200 HEIGHT=72 TYPE="application/x-shockw
PLUGINSPAGE="http://www.ma
</EMBED>
</OBJECT>