AS3 External Interface

Sep 5, 2009 at 5:59 PM
Edited Sep 5, 2009 at 6:07 PM

Adobe 'External Interface' examples

I have constructed a demo project using the GC Control and a second project using the Adobe sample with both projects based on default aspx, one using a gc control and one without

I have set 

<font size="2" color="#ff0000"><font size="2" color="#ff0000">

AutoEventWireup

</font></font><font size="2" color="#ff0000">

 

</font>

 

="true"

With the original using an 'object' embed the project works, when I use the second example using the gc control no response is returned to the server or received by it(the swf reports a succesfull connection!).

<gcfl:GCFlashControl id="l_buttons" runat="server" MajorVersion="9" MinorVersion="0" RequiredRevision="124" CodeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,124,0"

 

PlugInsPage="http://www.adobe.com/go/getflashplayer" DivId="injectHere" AllowScriptAccess="always" <font size="2">

 

</font>

Width="500" Height="375" Source="ExternalInterfaceExample" Quality="high" Align="Middle" Play="True" Loop="True" Scale="showAll" WindowMode="window" DeviceFont="False" BackColor="#FFFFFF" Name="1_buttons" Menu="True" AllowFullScreen="False" SwfMovie="ExternalInterfaceExample" EnableExpressInstall="True"> <font size="2">

 

</font>

<NoFlashTemplate>

No Flash Template:

<br />

Hey pal! You need flash.

<a href="http://www.adobe.com/go/getflashplayer/">Get Flash</a> <font size="2">

 

</font>

<br />

</NoFlashTemplate> <font size="2">

 

</font>

<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> <font size="2">

 

</font>

</NoScriptTemplate> <font size="2">

 

</font>

</gcfl:GCFlashControl>

 

I have both of the projects available if anyone is interested in looking at them.

seamless swf communication between aspnet and swfs is usefull

 

the control looks great and I am browsing through the source

 

 

Sep 5, 2009 at 6:06 PM

Sorry

I have run the test using the AS3 'External Interface' examples

 

rgs

John

Autodev

Coordinator
Sep 6, 2009 at 12:40 AM

I'm not sure if you are reporting a problem or not. Here is an example of an ASPX page where I put two GCFlashControls on a page. And they communicate with each other using the AS3 External Interface.

http://ccamweb.com/vvcalendar.aspx

In the lower left navigation panel you will see one control, which is the zoom control. In the main page area you will see a larger control, which displays an image.

Click the + and - images in the zoom control to zoom in and zoom out the image in the image control. Click and drag inside the viewer panel in the zoom control to move the image in the main control.

You can click and and grab either control to pan the image. Click and drag the image in the large control to move the view panel in the zoom control.

I used the AS3 External Interface to communicate between these two GCFlashControls in an ASPX page. So I don't understand your comments. Are you reporting a bug?