Flash Embeded In Asp.Net (Flash Movies In Asp.Net)



Flash Embedded in Asp.Net :-

After creating a Flash movie you choose File -> Save As from the top menu to save your movie. Save the file as "Somefilename.fla".
To embed the Flash movie you just made into an Asp.Net page, you should go back to your Flash program and do the following steps:
Step 1
Choose File > Open. Open a Flash movie you have created.
Step 2
Choose File > Export Movie.
Step 3
Name the file "somefilename.swf". Choose the location where the file is to be stored (in your Web folder). Click OK.
Step 4
Open the ASPX Code Page where you want to insert your Flash movie. Insert this code:


<object width="550" height="400">
<param name="movie" value="somefilename.swf">
<embed src="somefilename.swf" width="550" height="400">

</embed>
</object>


Note: This is the minimum code you need to embed a Flash movie in a browser. A broken icon will appear on the Web page if the user does not have the Flash plug-in installed.
 

Step 5
Type in the address of the HTML file in your browser and look at your first Flash movie.


Prev Post                                                      All Post                                                           Next Post




Posted in |

2 comments:

  1. THUYEN Says:

    Great! It works. Thanks.

  2. Anonymous Says:

    It works only for SWF files, but not for FLV.

Post a Comment