<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Incorporating Captivate movies in Xerte 1.7</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16525" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=354562120-04102007>After further investigation, Captivate does allow you
to use fscommand (and getURL). So I entered the following in the Javascript box
to execute when the movie ends: </SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=354562120-04102007></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=354562120-04102007><FONT face="Courier New"
color=#000000>fsCommand("movieEnd","1");</FONT></SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><SPAN class=354562120-04102007></SPAN><FONT face=Arial><FONT
color=#0000ff><FONT size=2>I<SPAN class=354562120-04102007> presume I need an
event handler to capture it in Xerte, but I don't know what event handler to
use. I'm also not sure if I entered the fscommand correctly (using Xerte is my
first foray into ActionScript). The Captivate help seems to indicate that's all
you need to do.</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=354562120-04102007></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=354562120-04102007>Mark Siegrist's list of Captivate variables was nice (I
had found that list already), and I'll probably use them to build my own
controls, but I still need to figure out how to read the fscommand from my
Captivate movie in Xerte. </SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=354562120-04102007></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=354562120-04102007>TIA,</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=354562120-04102007></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=354562120-04102007>Paul</SPAN></FONT></FONT></FONT></DIV>
<DIV><BR></DIV>
<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> xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] <B>On Behalf Of </B>Paul
Swanson<BR><B>Sent:</B> Thursday, October 04, 2007 8:34 AM<BR><B>To:</B> Xerte
discussion list<BR><B>Subject:</B> RE: [Xerte] Incorporating Captivate movies
in Xerte 1.7<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><SPAN class=624530615-04102007><FONT face=Arial
color=#0000ff size=2>Yes, onMovieComplete is being triggered correctly in
1.8. But as you mentioned, the Captivate movie has multiple timelines,
and it seems to be firing the event off when the first timeline completes,
which is at the end of the first frame. So I still have that to work
out. I'm just trying out the various features of Xerte, so this is nothing
urgent. We have been using Authorware for eLearning, and I think Xerte will be
the replacement. We don't have Flash here, but we will be getting
Captivate. I'm using the trial version at the moment.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=624530615-04102007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=624530615-04102007><FONT face=Arial
color=#0000ff size=2>I'm not sure how Captivate calls javascript. The
interface hides all that from you. You just have an option to set what happens
at the end of the movie clip, and one of those is to execute some JS. This
opens a window where you type the JS in. I haven't used this yet, but I think
I could use it to send an HTTP request to communicate with a PHP script. I
figured that if I do a quiz in Captivate, I could use this to store the
results in a database, but it would be nice if Captivate could communicate
directly with Xerte. I think it is a matter of what Captivate allows you to
do. If only there was a script icon in Captivate like there is in Xerte
...</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=624530615-04102007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=624530615-04102007><FONT face=Arial
color=#0000ff size=2>Cheers,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=624530615-04102007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=624530615-04102007><FONT face=Arial
color=#0000ff size=2>Paul</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> xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] <B>On Behalf Of </B>Tenney
Julian<BR><B>Sent:</B> Thursday, October 04, 2007 1:16 AM<BR><B>To:</B>
Xerte discussion list<BR><B>Subject:</B> RE: [Xerte] Incorporating Captivate
movies in Xerte 1.7<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><SPAN class=564020808-04102007><FONT face=Verdana
color=#0000ff size=2>Funny that should come up this week - I hit the same
problem myself earlier in the week, and fixed it. Can you download the
latest Xerte and try it again? There was a bug that prevented event
broadcasters getting set up if autoPlay was set. </FONT></SPAN></DIV>
<DIV><SPAN class=564020808-04102007><FONT face=Verdana color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=564020808-04102007><FONT face=Verdana color=#0000ff
size=2>There's always a 'it depends' caveat with external swfs, because
Xerte doesn't know which timeline in the swf to listen for completion
of. It could have multiple timelines, and the one you see playing might be
nested several levels in. The top level timeline may have only one
frame.</FONT></SPAN><SPAN class=564020808-04102007><FONT face=Verdana
color=#0000ff size=2> Let me know how you get on.</FONT></SPAN></DIV>
<DIV><SPAN class=564020808-04102007><FONT face=Verdana color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=564020808-04102007><FONT face=Verdana color=#0000ff
size=2>How does Captivate call javascript funtions? If it's fscommand it
should just work. I reckon externalInterface would also work. getURL should
work too. When you think about it, the Xerte engine is a flash movie.
It loads the captivate flash movie into the player, which should then just
behave as usual. Have you tried it? If you want the javascript to return
values to the Xerte piece, that's more troublesome, but if that's something
useful, I can look into it. Right now I don't think there is a way of
calling a js function from Xerte and getting a return
value.</FONT></SPAN></DIV>
<DIV><SPAN class=564020808-04102007><FONT face=Verdana color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=564020808-04102007><FONT face=Verdana color=#0000ff
size=2>cheers,</FONT></SPAN></DIV>
<DIV><SPAN class=564020808-04102007><FONT face=Verdana color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=564020808-04102007><FONT face=Verdana color=#0000ff
size=2>Julian</FONT></SPAN></DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>