This project is read-only.

New Version -

Mar 4, 2009 at 7:17 PM
Edited Mar 9, 2009 at 3:11 PM
I noticed that the web control was injecting its javascript in a non-deterministic way. As a result, it was difficult to place the flash file on a page at a specific location. Therefore, I added a public property called DivId. You set this attribute in your GCFlashControl to the id of a div tag where you want the flash file to reside. The web control will inject its contents into that div tag's innerHTML.

Here is a simple example. The div tag has an id of 'injectHere'. And the GC Flash Control specifies that id in the attribute, DivId.

<div id="injectHere">
   <gcfl:GCFlashControl id="l_buttons" runat="server" MajorVersion="9" MinorVersion="0" RequiredRevision="124" Width="465" Height="232" AllowScriptAccess="SameDomain" SwfMovie="1_buttons" EnableExpressInstall="True" DivId="injectHere">
           No Flash Template: <br />
           You need flash. <br/>
            <a href="Get">">Get Flash</a>
            <br />
           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="Get">">Get Flash</a>

In order for this new injection logic to work, you need to use my version of the javascript file, AC_OETags.js, which you can find in the sample zip file on the release page.