hello sir ...
I want to know something about asp...
how can i add .swf file into the asp page..

Dani AI

Generated

Short answer: Classic ASP just outputs HTML, so embedding a SWF in an .asp page is the same as embedding it in any HTML page — what matters is the browser and the SWF itself. and were right about that, and and pointed to the old object/embed and SWFObject approaches. However, there’s a critical change since those posts: Flash is effectively dead on the modern web, so the old embedding tricks usually won’t work anymore.

Adobe retired Flash Player on December 31, 2020 and blocked Flash content from running starting January 12, 2021; major browsers removed built‑in Flash support, so embedding a .swf today will generally fail for most visitors. (Adobe Flash Player EOL) (Firefox: end of support). (adobe.com)

Practical paths forward:

  • If the SWF is interactive, rebuild it as HTML5 Canvas/JavaScript/WebGL (best long-term). Adobe has for years recommended migrating Flash content to open standards. (Adobe: Flash & the future of interactive content). (blog.adobe.com)
  • If it’s purely an animation/video, export or convert it to MP4/WebM and use the HTML5 video element. Example fallback markup (serve the file from your web server, not a local file path):
<video controls width="640" height="360">
  <source src="media/animation.mp4" type="video/mp4">
  Your browser does not support the video tag.
</video>

If preserving the original SWF is unavoidable, consider an emulator like Ruffle (WASM/JS) that runs many legacy SWFs in modern browsers — compatibility is better for ActionScript 1/2 than for AS3. Also note SWFObject is archived and no longer an active solution; don’t rely on it for future compatibility. (Ruffle) (SWFObject on GitHub—archived). (ruffle.rs)

Quick tips: never use file:/// paths in your pages (use relative or absolute HTTP(S) URLs), test any chosen approach across current browsers, and avoid asking users to install legacy Flash plugins (Adobe recommends uninstalling Flash for security).

Recommended Answers

All 14 Replies

Same way that you do for html.

hehe ……you can use <embed>market,like this:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="32" height="32" title="ceshi">
  <param name="movie" value="file:///C|/Documents and Settings/Administrator.WWW-8211E7B1369/桌面/颜色.rtf.swf" />
  <param name="quality" value="high" />
  <embed src="file:///C|/Documents and Settings/Administrator.WWW-8211E7B1369/桌面/颜色.rtf.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="32" height="32"></embed>
</object>

use Macromedia Dreamweaver ,you can do it easy

hello sir ...
I want to know something about asp...
how can i add .swf file into the asp page..

hi P. Kumar

1. first download the , use google to find a current version and install it into your page in the header.

2. here is an example of where the flash will be displayed in your page, if flash is not available then an "enable javascript and download flash" is displayed along with a link to get the flash player.

<div id="flashcontent">Enable JavaScript and download <a href="http://www.macromedia.com/go/getflashplayer/">Flash Player.</a></div>

3. inside "script" tags you create the SWFobject. This is an example of from the simpleviewer photo album script. The SWF object is stored in a javascript variable "fo"

var fo = new SWFObject("viewer.swf", "viewer", "600px", "800px", "8", "#000000");

4. You dynamically write the flash content (SWF) stored in the "fo" variable to the HTML tag ("flashcontent" in this example).

fo.write("flashcontent");

This forum is for Classic ASP.

got this from YouTube

<object width="425" height="344">
<param name="movie" value="http://www.youtube.com/v/Xt5t9BO6xkA&hl=en&fs=1"></param>
<param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/v/Xt5t9BO6xkA&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed>
</object>

Does asp provide the facility of WcF as we get in .net

I never use .NET and have never heard of WcF so I guess not.

here is a working example.

Script uses the simpleviewer viewer.swf to display a gallery of images.

what is used Activex Component with asp
>>>Chandan Kumar Jha<<<<

The script uses ActiveX file Scripting object to scroll through a directory of images on the server. if the folder exists then get the image files from that directory and output to HTML IMG tag.

// establish the file scripting object
var fSO = new ActiveXObject("Scripting.FileSystemObject");

// if the directory is present
if (fso.folderExists("[directory of images]")){

// get the folder of images
var f = fso.GetFolder("[directory of images]");

// get all the files in the directory.  The Enumerator Function is better than having to store the results to an array then scrolling the array.
var fc = new Enumerator(f.files);

// scroll through the files and only output the ones with the extension being an image extension to HTML IMG tag.
}

which one is better asp or php ? which one i should select ?

Both are Server Side scripting languages, and accomplish the same tasks.

PHP is probably more widely used on Unix hosts which tend to be cheaper.

ASP/ASP.NET is specific to Windows Servers. ASP/ASP.NET has much more advanced features and requires a higher learning curve.

Most developers make their choice probably based on the platform that their server or database is running.

I generally use Access or MSSQL database on Windows Servers, so my scripting language of choice is ASP.

No, it doesn't matter if it's asp, same html code

The simplest way is this:

<object type="application/x-shockwave-flash" width="400" height="300" data="flash.swf">
<param name="movie" value="flash.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#000000">
</object>

Is that suitable for both IE and Mozilla browsers?

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.