Flash Control for ASP.NET

Include Flash movies in your aspx pages !
Designed for Visual Studio 2005 to 2012

FAQ

Is FlashControl compatible with ASP.NET AJAX ?
Is FlashControl compatible with Microsoft IE 'Active Content Update' Issue ?
How to install and use FlashControl in my project ?
How to add FlashControl in the Visual Studio Toolbox ?
Does FlashControl work with Visual Studio .Net 2003 ?
Does FlashControl work with Visual Studio 2010 or 2012 ?
Does FlashControl work with ASP.NET 1.1 project ?
Can I put FlashControl.dll in the GAC ?
Can I put multiple instances of FlashControl on the same page ?
Does FlashControl work with Theme/Skins ?
Does FlashControl support full screen Flash movies ?
Is FlashControl free ? Why is there an order link ?
What will I get if I order the source code ?
I want to order but I don't have a Paypal account !
How can I deal with FlashVars ? (before v2.5)
Breaking change with FlashVars from v2.x to v2.5 !
My swf works fine in Firefox and IE6, but with IE7 the control says that flash is not installed although it is.
My flash movie is not showing at all (with Js error) ?
I drag and drop Flash-control from the toolbox and launch the browser but nothing happens, what's wrong ?
What are the differences between free and pro versions ?
There are a lot of properties which I don't know exactly what they do, and if I should set them to true or false. Where is the documentation ?
Can I use Flash-control to display buttons to control play, stop, zoom, etc. ?
The control works fine locally but once I deploy it to my server it does not work anymore.
Error message : "Could not load file or assembly 'FlashControl' or one of its dependencies. The system cannot find the file specified."
Why Expression Web do not display FlashControl properly on the designer ?
How to upgrade ?
How to use AlternateContentTemplate ?
I have problem with ExpressInstall feature.
Can I use FlashControl to play flv files ?

Is FlashControl compatible with ASP.NET AJAX ?

Yes !!! Since v2.7 FlashControl fully works with ASP.NET AJAX UpdatePanel control.

Is FlashControl compatible with Microsoft IE 'Active Content Update' Issue ?

Yes, FlashControl fix this issue. It now use an embedded JavaScript file to render the Flash movie, so it is compatible with the new way Internet Explorer handles plugins.
To learn more about this issue, follow this link : Activating ActiveX Controls.

How to install and use FlashControl in my project ?

Add a reference to FlashControl.dll in your web application, and use this syntax to put a FlashControl in your aspx page :
<%@ Register Assembly="FlashControl" Namespace="ldex.Web.UI.WebControls" TagPrefix="ldex" %>
<ldex:FlashControl ID="FlashControl1" runat="server" MovieUrl="~/animation/movie.swf" BrowserDetection="False" Height="122px" Width="217px" />
where ~/animation/movie.swf is your web root relative path to the Flash movie

A simplier way is to put FlashControl in Visual Studio 2005/2008 Toolbox (or Visual Web Developer Express), please see next question.

How to add FlashControl in the Visual Studio Toolbox (or Visual Web Developer Express) ?

Put FlashControl.dll somewhere on your hard drive, "C:\temp\" for example. Now in Visual Studio, open the Toolbox window, right-click on a tab (you can create a new one if you want) and select "Choose items...", then on the ".Net Framework components" tab click "Browse..." and select the "FlashControl.dll" file located in "C:\temp\" directory. Finally click the "OK" button and FlashControl appears on the Toolbox. Now you can drag and drop it on your webform in the Visual Studio designer !

Does FlashControl work with Visual Studio .Net 2003 ?

No, FlashControl is made for .NET 2.0, so it works only with Visual Studio 2005 to 2012 or Visual Web Developer Express, since Visual Studio .Net 2003 works with .NET 1.x framework.

Does FlashControl work with Visual Studio 2010 or 2012 ?

Yes, Visual Studio 2010 and 2012 fully support FlashControl.

Does FlashControl work with ASP.NET 1.1 project ?

No it will not work on 1.1 (or 1.0) projects since it needs your web application to run on .NET 2.0 framework or better (3, 3.5, 4, ...).

Can I put FlashControl.dll in the Global Assembly Cache (GAC) ?

Yes! FlashControl.dll assembly is strongly named so you can put it into the GAC. To install FlashControl in your GAC, you can use the framework command line tool Gacutil.exe :
Gacutil.exe /if FlashControl.dll

Can I put multiple instances of FlashControl on the same page ?

Sure you can, no problem!

Does FlashControl work with Theme/Skins ?

Yes! FlashControl works with ASP.NET Theme service, and particularly the SkinID property.
Example of a Skin file:
<%@ Register Assembly="FlashControl" Namespace="LDEX.Web.UI.WebControls" TagPrefix="ldex" %>
<ldex:FlashControl runat="server" SkinID="intro" Height="170px" MovieUrl="~/UI/Movie/welcome.swf" Width="500px" />
And in your aspx page:
<ldex:FlashControl ID="FlashControl1" runat="server" SkinID="intro"></ldex:FlashControl>

Does FlashControl support full screen Flash movies ?

Yes FlashControl can display full screen movies, just use the boolean FullScreen property.

Is FlashControl free ? Why is there an order link ?

FlashControl comes with a free and a paid version. Free version can be deployed on personal and commercial projects and on an unlimited number of server, but it does not have as many features as paid version. To compare features/versions go to the product comparison matrix page.
Also with the paid version we provide a full samples website that you can run locally to test features. You can also buy the complete source code. By ordering the source code you will be able to modify or personalize FlashControl for your needs, make it part of your web controls library.

What will I get if I order the source code ?

You will receive by email a zip file contening the complete C# source code, including Visual Studio project and solution, the strong name file and password. And yes, the source code is comprehensible and fully commented!

I want to order but I don't have a Paypal account !

You don't need a Paypal account to order. Just follow the ordering steps and you will have a choice of several payment methods.

How can I deal with FlashVars ? (before v2.5)

UPDATE: If you use v2.5 and later, see next question since there is a breaking change !!!

You can just put your UrlEncoded string in the FlashVars property.

OR

Use CodeBehind to put a NameValueCollection in the FlashVarsCollection property. Each item in the collection will be automatically UrlEncoded so you don't have to.

Example with C# :
System.Collections.Specialized.NameValueCollection flashVarsCol = new System.Collections.Specialized.NameValueCollection();
flashVarsCol.Add("dvd", "Atomic Circus");
flashVarsCol.Add("book", "ASP.NET flash component");
flashVarsCol.Add("game", "World Of Warcraft");
FlashControl1.FlashVarsCollection = flashVarsCol;

FlashControl will generate the following code :
<param name="flashvars" value="dvd=Atomic+Circus&movie=Thelma+%26+Louise&game=World+Of+Warcraft" />

Example with VB.NET :
Dim flashVarsCol As System.Collections.Specialized.NameValueCollection
flashVarsCol = New System.Collections.Specialized.NameValueCollection()
flashVarsCol.Add("dvd", "Atomic Circus")
flashVarsCol.Add("book", "ASP.NET flash component")
flashVarsCol.Add("game", "World Of Warcraft")
FlashControl1.FlashVarsCollection = flashVarsCol

If both FlashVars and FlashVarsCollection properties are used, FlashVarsCollection has the priority.

Breaking change with FlashVars from v2.x to v2.5 !

FlashVarsCollection property is no more a NameValueCollection, but a custom type (named FlashVarsCollection) which items are of type FlashVarItem.
See below for an example to assign FlashVars in code.

Example with C# :
FlashControl1.FlashVarsCollection.Add(new FlashVarItem("book","Macromedia Flash in ASP.NET"));
FlashControl1.FlashVarsCollection.Add(new FlashVarItem("game","World Of Warcraft"));

Example with VB.NET :
FlashControl1.FlashVarsCollection.Add(New FlashVarItem("book", "Macromedia Flash in ASP.NET"))
FlashControl1.FlashVarsCollection.Add(New FlashVarItem("game", "World Of Warcraft"))

My swf works fine in Firefox and IE6, but with IE7 the control says that flash is not installed although it is.

This is not a problem with Flash-Control.
This is a known issue with IE7 and the flash plugin.
You can read the solution at this location.
Also you can have a look at this page.

My flash movie is not showing at all (with Js error) ?

Please verify that your aspx page has a <form id="Form1" runat="server"> tag. This is needed for the control to register client code from server side.

I drag and drop Flash-control from the toolbox and launch the browser but nothing happens, what's wrong ?

Be sure not to put your swf file in a special folder like the App_Data folder. For security purpose this folder cannot be accessed from web request and should contain only SQL Express db or XML files. Move your swf file to a regular web folder.

What are the differences between free and pro versions ?

See the products comparison matrix page.

There are a lot of properties which I don't know exactly what they do, and if I should set them to true or false. Where is the documentation ?

We did not write documentation because most of them (Menu, Scale, SwLiveConnect, etc..) are standard flash properties, we advise you to read the official documentation from Adobe.

Can I use FlashControl to display buttons to control play, stop, zoom, etc. ?

Flash-control is not a flash player, it does not change your movie by adding nav buttons to it. Flash-control is a nice tool for inserting flash movies in your pages, so when you run the browser you get your swf flash movie embedded in the html of your aspx page. It also allows you to manage your flash properties and flashvars on server side, and it uses a javascript library to fix the "click here to activate" issue. For the flash part, it does not add more than what's inside your swf, and FlashControl does not expose a server side API to change the behaviour of your movie.

So to control your movie on client side, you have 3 solutions :

- If you have your flash movie fla source, you can add play/pause/rewind nav buttons in your flash movie, then put it in your page with FlashControl.

- You can enable the standard Flash menu, which display stop, start, rewind, zoom buttons with right click on the flash. For that purpose just set the Menu property to true.

- On the aspx page where you use Flash-control, you can add buttons to control your flash movie with JavaScript. You'll find full samples with code on the samples website delivered with the pro version.

The control works fine locally but once I deploy it to my server it does not work anymore.

Please make sure that your hoster support ASP.NET
If you administer the server, check in IIS that your virtual folder is set as an ASP.NET app.

Also sometime you need to register the .flv mime type on the server, if not the Flash control comes up but the video is not showing.

Error message : "Could not load file or assembly 'FlashControl' or one of its dependencies. The system cannot find the file specified."

See previous answer.

Why Expression Web do not display FlashControl properly on the designer ?

This is not related to FlashControl, unfortunately Expression Web do not support custom controls natively. Follow this link for a turnaround.
Update: it appears that Expression Web 2 fix this issue.

How to upgrade ?

You already bought FlashControl and saw that a new version is available, how do you upgrade ?
First, upgrades are free. You just have to request a new download link from the original email you received. If you don't have it, send us an email.

How to use AlternateContentTemplate ?

In Visual Studio designer, click on the FlashControl smart tag (top right arrow) and click on "Edit template".

I have problem with ExpressInstall feature.

Please read the following links to get help:
Using Flash Player Express Install
Adobe Express Install FAQs

Can I use FlashControl to play flv files ?

As long as you provide the swf player, yes!
FlashControl do not include a swf player, it helps embed swf in your pages.
So if you have a swf player to read flv, you can use FlashControl to embed the player and display your flv (typically with FlashVars).

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Home | Features | Testimonials | Screenshots | Download | Product comparison matrix | FAQ | Contact | version franšaise