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

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 swfobject.js, 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.

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.