<!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><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>
<DIV dir=ltr align=left><BR></DIV>
<BLOCKQUOTE dir=ltr style="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> 03 October 2007 22:39<BR><B>To:</B>
xerte@lists.nottingham.ac.uk<BR><B>Subject:</B> [Xerte] Incorporating
Captivate movies in Xerte 1.7<BR></FONT><BR></DIV>
<DIV></DIV><!-- Converted from text/rtf format -->
<P><FONT face=Arial size=2>I'm using Adobe Captivate 3 swfs with Xerte. I can
get them to play just fine, but I would like to figure out how to detect when
the swf has finished playing, and then take some action (like display a button
or automagically go to the next page). I've tried using the onMovieComplete
event, but it doesn't seem to trigger. Does that only work with FLV
movies?</FONT></P>
<P><FONT face=Arial size=2>Here's what I tried:</FONT> </P>
<P><FONT face=Arial size=2>I have a graphic icon with an id of 'ratesSWF'. I
added the swf to the url property and set Autoplay to 1. The movie loads and
plays. I follow the graphic icon with an Event-type interaction. The event
property is set to 'onMovieComplete' and the icon property is set to
'ratesSWF'. The Event response has a Text icon attached that displays 'Movie
Complete'. But when the swf is finished, the text does not display.</FONT></P>
<P><FONT face=Arial size=2>Captivate 3 has the option to execute JavaScript on
slides. Would Xerte be able to detect this? If so, how would I go about
it?</FONT></P>
<P><FONT face=Arial size=2>Thanks!</FONT> </P>
<P><FONT face="Courier New" color=#808080
size=2>_____________________________</FONT> </P>
<P><FONT face="Courier New" color=#808080 size=2> Paul Swanson</FONT>
<BR><FONT face="Courier New" color=#808080 size=2> Instructional
Designer</FONT> <BR><FONT face="Courier New" color=#808080
size=2> Harland Financial Solutions</FONT> <BR><FONT face="Courier New"
color=#808080 size=2>_____________________________</FONT>
</P></BLOCKQUOTE></BODY></HTML>