by JCodes
22. November 2009 15:38

Many a times , asp.net developers , need to use flash as a part of their web projects.The handling of those junk looking flash embed codes becomes awkward so i decided to package those codes in to our own server controls.
Its extremely easy to use this swf server controls for asp.net so you may give it a try...
Step 1. Download the asp.net Swf Server control for displaying flash file from here JCodesSwfControl.dll (7.50 kb)
Step 2. Drop this dll in your Bin folder of the asp.net application.
Step 3. On your asp.net Page below
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="myfolders.aspx.cs" Inherits="myfolders" %>
// my asp.net swf control declaration
<%@ Register Assembly="JCodesSwfControl" Namespace="JCodesSwfControl" TagPrefix="cc1" %>
step4) Now drop this piece of tags where you need to display a flash file
<cc1:JcodesSWFControl ID="JcodesSWFControl1" runat="server" SWFPath="~/joke.swf" />
A Good thing with this server control is that you can select and change the properties from properties box for Height , Width , SWFPath (dialog box support for file choosing)
If you tried it let me know if there is any bug or difficulty..
Bye !
HSJ