ASP.Net Flash WebControl - version 1.0.0.3

Rating: No reviews yet
Downloads: 434
Released: Jan 26, 2009
Updated: Jan 31, 2009 by rmgalante
Dev status: Stable Help Icon

Recommended Download

Example GCFlashControl_Sample.zip
example, 38K, uploaded Jan 26, 2009 - 434 downloads

Release Notes

The GC .Net Flash Control supports the following features.

1. Play SWF files
2. Drag and Drop the GC Flash Control from toolbox to Web Form
3. Flash detection
4. Flash minimum version detection
5. Flash express install - this is optional
6. Supports the AS3 External Interface
7. Allows more than one .Net Flash Web Control on the web form (new in version 1.0.0.2).
8. Added the property, AbsolutePath, which allows the user to place the files, AC_OETags.js, playerProductInstall.swf, and the Swf movie, in a separate subdirectory below the site's root directory (new in version 1.0.0.2).

I have attached a zip file to this release, which is named GCFlashControl_Sample.zip. This file contains the sample that I used to validate the web control. It contains the following items.

TestFlashControl\
AppData\
Bin\GCFlashControl.dll - this is the web control
Bin\GCFlashControl.pdb
1_buttons.swf - this flash movie is loaded by the control
AC_OETags.js - from the adobe detection kit
Default.aspx - the test web form
Default.aspx.vb - the test web form's code file
playerProductInstall.swf - from the adobe detection kit
web.config - standard web config file

Create a virtual directory on your machine called TestFlashControl. Copy the contents of the zip file to that directory. Run the web form, Default.aspx. You will see the demo flash sample on your screen.

If you load Visual Studio 2005 or Visual Studio 2008, you can add the GC Flash Control, GCFlashControl.dll, to your toolbox and drag and drop it on your web forms. When you drop the web control on your form, you will see the following markup.

<gcfl:GCFlashControl id="GCFlashControl1" runat="server" Width=1 Height=1 SwfMovie=movie MajorVersion=6 MinorVersion=0 RequiredRevision=65>
</gcfl:GCFlashControl>

Now you can configure the attributes as desired. At a minimum you will need to add the following attributes: Width, Height, MajorVersion, MinorVersion, RequiredRevision, and SwfMovie.

The .Net Flash Control is a templated control and has two optional templates. They are shown below.

<NoFlashTemplate>
No Flash Template: <br />
You need flash to run this application.
<a href="http://www.adobe.com/go/getflashplayer/">Get Flash</a>
<br />
</NoFlashTemplate>
<NoScriptTemplate>
No Script Template: <br />
// Provide alternate content for browsers that do not support scripting <br />
// or for those that have scripting disabled. <br />
Alternate HTML content should be placed here. <br />
This content requires the Adobe Flash Player.
<a href="http://www.adobe.com/go/getflashplayer/">Get Flash</a>
</NoScriptTemplate>

You insert these templates between the web control's tags (see the gcfl:GCFlashControl markup above). These templates are optional. If you add more than one web control to your page, only one of the controls has to specify these templates. The first control that specifies a "NoFlashTemplate" and a "NoScriptTemplate" will be the source for the details in your web form.

The GC .Net Flash Control supports the following properties. Bold items indicate the default values.

AbsolutePath - if you add this attribute, it must be a full path, such as /TestFlashControl/Swf. It's a path, not a filespec.
Align - middle, left, right, top, bottom
AllowFullScreen - false, true
AllowScriptAccess - sameDomain, never, always
CodeBase - http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,124,0
DeviceFont - false, true
EnableExpressInstall - false, true
Id
Loop - false, true
MajorVersion - 6
MinorVersion - 0
Menu - false, true
Name
Play - false, true
PlugInsPage - http://www.adobe.com/go/getflashplayer
Quality - low, medium, high, autoLow, autoHigh, best
RequiredRevision - 65
SAlign - middle, left, right, top, bottom, topLeft, topRight, bottomLeft, bottomRight
Scale - showAll, noBorder, exactFit, noScale
Source
SwfMovie - your movie
WindowMode - window, direct, gpu, transparent, opaque

See IssueTracker for details.

Reviews for this release

No reviews yet for this release.