How to use registration-free deployment on ASP.NET 2.00 Web-server for SWF Scout library
This tutorial provides step-by-step instructions and a sample code to demonstrate how to use SWF Scout library in ASP.NET 2 Web-application projects without registering SWFScout.dll or SWFScoutDemo.dll file on the Web-server.
Create a new website project in Visual Studio.

Enter a name for the new website and click OK.

Right-click on project in Solution Explorer and select Add Reference command in popup menu invoked:

Browse for ASPManifestHelpers.dll (you can find it in ZIP with sample code) and select it and click OK to add reference:

Then create folder named SWFScout.assembly by right-clicking on project in Solution Explorer and selecting New Folder command:

Type name of the folder SWFScout.assembly and click OK to create a folder.

Now you should add the following files to the created folder:
SWFScoutDemo.DLL - you can find it in SWF Scout Library installation folder
SWFScoutDemo.assembly.manifest - you can find it in SWF Scout Library Examples folder (Examples\ASP.NET (registration-free deployment)\)
To add files right-click on project in Solution Explorer and select Add Existing Item command:

File selection dialog will appear - select SWFScoutDemo.dll and SWFScoutDemo.assembly.manifest files (hold CTRL and click on each file to select) and click Add button to add files to the project
Now add webapp.manifest file (you can find it in ZIP with sample code) to the project: right-click on project in Solution Explorer and select Add Existing Item command:
Now add webapp.manifest file to the project: right-click project in Solution Explorer and select Add Existing Item command:

File selection dialog will appear. Select webapp.manifest file and click Add:

Start project by clicking Start Debugging button:

Visual Studio will suggest to add new Web.config file. Accept this as shown below:

Close Internet Explorer window and switch back to Visual Studio.
Web.config file will appear in the list of project files. Double-click the web.config file:

Visual Studio will open editor with Web.config file in it.
Add the lines after <system.web> line. So you will see a code like on a screenshot below:

Now add reference to SWFScoutDemo.dll file: right-click the project name and select Add Reference command in right-click menu:

Browse the SWF Scout installation folder (typically c:\program files\Bytescout SWF Scout\ ), select SWFScoutDemo.dll file and click OK to add reference.
Finally our website project is ready for coding SWF generation using SWF Scout SDK!
Double click on Default.aspx.cs file in Solution Explorer:

Editor window will appear with Default.aspx.cs file in it.
Add line
using SWFScout;
and add code to generate SWF using SWFScout in Page_Load function as shown below:
try { FlashMovie Movie = new FlashMovieClass(); Movie.InitLibrary("demo", "demo"); Movie.BeginMovie(0, 0, 640, 480, SWFSystemCoord.sscTwips, 12, 6); Movie.Compressed = true; Movie.GenerateInMemoryFile = true; // set background color to white Movie.SetBackgroundColor(255, 255, 255); // add font int Font = Movie.AddFont("Arial", 18, true, false, false, false, 0); // create and place text int Text = Movie.AddText("Hello, World!", 0, 0, 0, 255, Font, 0, 100, 250, 160); // place text into current depth Movie.PlaceText(Text, Movie.CurrentMaxDepth); // fade out text Movie.PLACE_FadeOut(0.5f); // add new shape int Shape = Movie.AddShape(); // draw rectangle Movie.SHAPE_Rectangle(0, 140, 150, 285); // set solid fill for shape Movie.SHAPE_SetSolidColor(50, 255, 50, true, 255); // place shape into current depth Movie.PlaceShape(Shape, Movie.CurrentMaxDepth); // show 10 frames Movie.ShowFrame(10); // end movie generation Movie.EndMovie(); // get size of generated in-memory SWF file int Size = Movie.BinaryImageSize; // create new buffer with size equal to generated SWF file byte[] buffer = new byte[Size + 1]; // get in-memory swf file as byte stream Array MemoryImage = (Array)Movie.BinaryImage; // copy byte stream into buffer Array.Copy(MemoryImage, buffer, Size); // clear http output Response.Clear(); // set the content type to SWF Response.ContentType = "application/x-shockwave-flash"; // add content type header Response.AddHeader("Content-Type", "application/x-shockwave-flash"); // set the content disposition Response.AddHeader("Content-Disposition", "inline;filename=shapes.swf"); // write the buffer with swf file to the output Response.BinaryWrite(buffer); Response.End(); } catch (Exception ex) { if (!(ex is System.Threading.ThreadAbortException)) System.Diagnostics.Debug.WriteLine(ex.Message); }

Press F5 to start website project and create SWF file and you'll see SWF generated by your website project.
Created SWF movie will be displayed on the web page:

Download source code: