Hi friends i want to know about how to create Big flash banner in html . and also i dont know to create flash video in swf format. please send the code here .......

Dani AI

Generated

The early replies here (for example , and ) show the old workflow: build a .swf and embed it with OBJECT/EMBED or JavaScript detection. That was correct until browser vendors and Adobe retired the Flash runtime — Flash Player reached end‑of‑life on December 31, 2020 and modern browsers block it. (adobe.com)

Modern, reliable options for a "big banner" are (A) a short H.264/WebM video, (B) an exported HTML5 Canvas from Adobe Animate, or (C) a small vector animation via Lottie. For a simple responsive video banner use this pattern (autoplay requires muted for browsers to allow it):

<video autoplay muted loop playsinline poster="banner.jpg" style="width:100%;height:auto;object-fit:cover;">
  <source src="banner.webm" type="video/webm">
  <source src="banner.mp4" type="video/mp4">
  <img src="banner.jpg" alt="Static banner">
</video>

Use preload="metadata" to reduce initial download and keep the video under ~1–2 MB for good performance. Note: autoplay with sound is blocked in many browsers; muted autoplay + an unmute control is the reliable UX. (developer.mozilla.org)

If starting from a .fla or creating in Adobe Animate, publish to HTML5 Canvas or export an MP4 via File → Export → Export Video/Media (Animate can publish CreateJS/HTML5 Canvas output or send video jobs to Media Encoder). Converting complex ActionScript may require rework — automatic conversion is limited. ()

For crisp, lightweight vector banners consider After Effects → Bodymovin (Lottie) exports and render with lottie-web; these produce small JSON vector animations that scale cleanly and are easy to control. Example usage is the <lottie-player> custom element (load the player, point at your exported JSON and set loop/autoplay). (github.com)

Legacy .swf content can sometimes be viewed with emulators (Ruffle) for preservation/testing, but emulators are not a production replacement for native HTML5 assets. Keep fallbacks (poster image / accessible text), optimize file size, and prefer HTML5 video or Lottie for current websites. (github.com)

Recommended Answers

All 6 Replies

Hi this is a script i found, this shows the flash, and if the user doesn't have flash it will show an image.

<SCRIPT LANGUAGE=JavaScript1.1>
<!--
var MM_contentVersion = 6;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
		var words = navigator.plugins["Shockwave Flash"].description.split(" ");
	    for (var i = 0; i < words.length; ++i)
	    {
		if (isNaN(parseInt(words[i])))
		continue;
		var MM_PluginVersion = words[i]; 
	    }
	var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
   && (navigator.appVersion.indexOf("Win") != -1)) {
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
	document.write('on error resume next \n');
	document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
	document.write('</SCR' + 'IPT\> \n');
}
if ( MM_FlashCanPlay ) {
		document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
	document.write('  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
	document.write(' ID="script" WIDTH="306" HEIGHT="296" ALIGN="">');
	document.write(' <PARAM NAME=movie VALUE="originalflashfile.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF>  '); 
	document.write(' <EMBED src="originalflashfile.swf" quality=high bgcolor=#FFFFFF  ');
	document.write(' swLiveConnect=FALSE WIDTH="306" HEIGHT="296" NAME="script" ALIGN=""');
	document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
	document.write(' </EMBED>');
	document.write(' </OBJECT>');
} else{
	document.write('<IMG SRC="alternativeimage.jpg" WIDTH="306" HEIGHT="296" usemap="#script" BORDER=0>');
}
//-->
</SCRIPT><NOSCRIPT><IMG SRC="alternativeimage.jpg" WIDTH="306" HEIGHT="296" usemap="#script" BORDER=0></NOSCRIPT>

just change the originalflashfile.swf to the name of your flash file and directory. And also change the width and height to the same value as your flash file.

and do the same with thealternativeimage.jpg to an alternative image instead of the flash file for the small% of people who don't have flash installed. And also change the height and width to match your image file.

Hope that helps. :)

i m dont have any flash files . what to do ?

first u must create your banner in flash, then export your movie in swf format. Now u ready to insert ur banner in any html pages.

create flash, then export flash file in swf format. Insert swf file in HTML page.

first create a flash banner in adobe flash cs3 and save a file into swf format and insert your swf file in html file using below code

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
 codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" name="saapsubanim"
 WIDTH="778" HEIGHT="229" hspace="0" vspace="0" ALIGN="" id="saapsubanim"> <!-- enter flash file name, width, height -->
        <PARAM NAME=movie VALUE="saapsubanim.swf"> <!-- enter flash file name here -->
        <PARAM NAME=menu VALUE=false> 
        <PARAM NAME=quality VALUE=high>
        <PARAM NAME=bgcolor VALUE=#DDDDDD>
        <param name="SCALE" value="exactfit">
        <param name="wmode" value="transparent">
        <EMBED src="saapsubanim.swf"  WIDTH="778" HEIGHT="229" hspace="0" vspace="0" ALIGN="" menu=false quality=high bgcolor=#DDDDDD NAME="saapsubanim"
 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" scale="exactfit" wmode="transparent"></EMBED> 
      </OBJECT>

Hi,

This can be done with the help of Dreamweaver. if you have dream weaver in your PC go to insert and import swf file. Hope it will help you.

Thanx,
Vijayalaxmi

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.