GC Flash Control - Version 1.0.0.1

Rating: No reviews yet
Downloads: 78
Released: Jan 24, 2009
Updated: Jan 25, 2009 by rmgalante
Dev status: Beta Help Icon

Recommended Download

Example GCFlashControl_Sample.zip
example, 38K, uploaded Jan 25, 2009 - 78 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

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">
</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. It won't work without these attributes.

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. Note that you can substitute your own html in place of the html in the sample.

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

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 - this is your movie
WindowMode - window, direct, gpu, transparent, opaque

This version fixes the following bugs.

1. When injecting the NoFlashTemplate html markup into javascript, I need to escape the single apostrophes.
2. Add the attributes, Width, Height, SwfMovie, MajorVersion, MinorVersion, and RequiredRevision to the drag and drop defaults.
3. Fix the default values for Loop, Menu, and Play. They were defaulting to false and should default to true.

Reviews for this release

No reviews yet for this release.