New Version - 1.0.0.4

Coordinator
Mar 4, 2009 at 6:17 PM
Edited Mar 9, 2009 at 2: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">
  <p>
   <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">
       <NoFlashTemplate>
           No Flash Template: <br />
           You need flash. <br/>
            <a href="Get">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="Get">http://www.adobe.com/go/getflashplayer/">Get Flash</a>
       </NoScriptTemplate>
   </gcfl:GCFlashControl>
  </p>
</div>

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.