<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=718493006-15082006><FONT face=Arial 
color=#0000ff size=2>Tim.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=718493006-15082006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=718493006-15082006><FONT face=Arial 
color=#0000ff size=2>The onClick handler of the image would call a JavaScript 
function just like the pressing of the form submit button does at present (in 
Geoff's example = updateText(); ).</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=718493006-15082006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=718493006-15082006><FONT face=Arial 
color=#0000ff size=2>function updateText() 
{<BR>         if (flashMovie) 
{<BR>            var txt 

document.getElementById("textarea").value;<BR>            
flashMovie.updateText(txt);<BR>         
}<BR>      }</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=718493006-15082006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=718493006-15082006><FONT face=Arial 
color=#0000ff size=2>your video function might be something 
like:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=718493006-15082006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=718493006-15082006><FONT face=Arial 
color=#0000ff size=2><SPAN class=718493006-15082006><FONT face=Arial 
color=#0000ff size=2>function updateContentPath(path) 
{<BR>         if (flashMovie) 
{<BR>            
flashMovie.updateContentPath(path);<BR>         
}<BR>      }</FONT></SPAN></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=718493006-15082006><FONT face=Arial 
color=#0000ff size=2><SPAN 
class=718493006-15082006></SPAN></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=718493006-15082006><FONT face=Arial 
color=#0000ff size=2><SPAN class=718493006-15082006>And you would call it on 
your image like:</SPAN></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=718493006-15082006><FONT face=Arial 
color=#0000ff size=2><SPAN class=718493006-15082006><a href="#"><img 
src="some.gif" onClick='updateContentPath("some\FLV\location\vid.flv");'/></a></SPAN></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=718493006-15082006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=718493006-15082006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=718493006-15082006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=718493006-15082006><FONT face=Arial 
color=#0000ff size=2>In flash you would add your external interface callback(s), 
<SPAN class=718493006-15082006><FONT face=Arial size=2>and define a function 
within flash that would actually change the content path and play the 
vid:</FONT></SPAN></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=718493006-15082006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=718493006-15082006><FONT color=#0000ff 
size=2><FONT color=#000084 size=1>
<P><FONT face=Arial size=2>var </FONT></FONT><FONT face=Arial><FONT 
color=#000000>ei1 = flash.external.ExternalInterface.addCallback(</FONT><FONT 
color=#0000ff>"updateContentPath"</FONT><FONT color=#000000>, </FONT><FONT 
color=#000084>null</FONT><FONT size=1><FONT color=#000000 size=2>, <FONT 
color=#0000ff>updateContentPath</FONT>);</FONT></FONT></FONT></P>
<P><FONT size=1><SPAN class=718493006-15082006><FONT face=Arial size=2>function 
updateContentPath (path)<BR>{<BR>    flv_playback.contentPath = 
path;<BR>    flv_playback.play();<BR>}</FONT></SPAN></FONT></P>
<P><FONT size=1><SPAN class=718493006-15082006><FONT face=Arial size=2>//this 
function assumes you have a flvplayback component on the stage called 
"flv_playback".</FONT></SPAN></FONT></P>
<P><FONT size=1><SPAN class=718493006-15082006><FONT face=Arial 
size=2></FONT></SPAN></FONT> </P>
<P><FONT size=1><SPAN class=718493006-15082006><FONT face=Arial size=2>Now this 
is all untested, but that is the general idea...</FONT></SPAN></FONT><FONT 
size=1><SPAN class=718493006-15082006><FONT face=Arial size=2>Hope that 
helps,</FONT></SPAN></FONT></P>
<P><FONT size=1><SPAN class=718493006-15082006><FONT face=Arial 
size=2>Aran</FONT></SPAN></P></FONT></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=718493006-15082006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV><BR>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>From:</B> swfobject-bounces@lists.deconcept.com 
  [mailto:swfobject-bounces@lists.deconcept.com] <B>On Behalf Of 
  </B>ReDrUm<BR><B>Sent:</B> Tuesday, 15 August 2006 12:59 PM<BR><B>To:</B> 
  swfobject@lists.deconcept.com<BR><B>Subject:</B> [SWFObject] ExternalInterface 
  and FLVPlayBack<BR></FONT><BR></DIV>
  <DIV></DIV>
  <DIV>Hi All,</DIV>
  <DIV> </DIV>
  <DIV>I'm wondering how to dynamically change the FLVplayback.contentPath using 
  the ExternalInterface in Flash 8 and swfObject via a webpage. Looking at 
  geoffs example of externalInterface from August 05, im having a 
  little difficulty following it without the source files which were lost. 
</DIV>
  <DIV>How would i setup my swf/js to change the contentPath onclick of an image 
  rather than a form?</DIV>
  <DIV> </DIV>
  <DIV>E.g. <img onclick=""> thumbnails on the website with some kind of 
  onclick to set the contentPath of the appropriate video, which in turn loads 
  inside my swf via the FLVplayback component.</DIV>
  <DIV> </DIV>
  <DIV>Is this very simple? any/all help much appreciated.</DIV>
  <DIV> </DIV>
  <DIV>Cheers,</DIV>
  <DIV><BR>-- <BR>Tim Keir</DIV></BLOCKQUOTE></BODY></HTML>