<HTML dir=ltr><HEAD><TITLE>RE: [Xerte] swf won't play</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6000.16809" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText23838 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>Glad it's sorted. The early captivate swfs will work, it's just a case of finding out how to make them work.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>inspect() is a useful function for deugging these things. It takes an object, such as a loaded movie, and loops over all it's properties and methods and debugs each one: try inspect(rootIcon);</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>It ought to also dive an object, drilling down into it's children, and their children and so on if you add the scond optional parameter inspect(myObject, true);</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>J</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> xerte-bounces@lists.nottingham.ac.uk on behalf of Gregory P Sweet<BR><B>Sent:</B> Tue 17/03/2009 19:01<BR><B>To:</B> Xerte discussion list<BR><B>Subject:</B> RE: [Xerte] swf won't play<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>Looks like captivate was the problem (I had the original flavor). I<BR>downloaded the trial for Captivate 4 and re-published the swf. Plays no<BR>problem in Xerte. So it would seem that captivate ver. 1 SWF is not<BR>compatible with Xerte.<BR><BR>xerte-bounces@lists.nottingham.ac.uk wrote on 03/17/2009 10:56:02 AM:<BR><BR>> OK. Captivate. There's a clue.<BR>><BR>> Add a graphic icon. Point it to your swf, give the icon an id, like<BR>> 'cpMovie'<BR>> Add an interaction icon below the graphic;<BR>> Add an events response to it - set the icon to be cpMovie, the event to<BR>> be onLoad<BR>> Add a script icon to the response.<BR>> Add this code:<BR>><BR>> //manually play the movie...<BR>> debug("the swf has loaded");<BR>> cpMovie.clip.play();<BR>><BR>> you need to be aware that if you don't know how the swf is made, getting<BR>> it to play in Xerte is not always straightforward, as the develoeprs<BR>> could have done anything inside the swf, and Xerte knows nothing about<BR>> it. Often you can figure it out with a bit of debugging.<BR>><BR>><BR>><BR>> -----Original Message-----<BR>> From: xerte-bounces@lists.nottingham.ac.uk<BR>> [<A href="mailto:xerte-bounces@lists.nottingham.ac.uk">mailto:xerte-bounces@lists.nottingham.ac.uk</A>] On Behalf Of Gregory P<BR>> Sweet<BR>> Sent: Tuesday, March 17, 2009 2:48 PM<BR>> To: Xerte discussion list<BR>> Subject: RE: [Xerte] swf won't play<BR>><BR>> I have limited access to the swf source code. It's a swf created using<BR>> Captivate. I've got almost no oop experience (it took me a long time and<BR>> several classes to get proficient with Aware code) so "listening for an<BR>> event"? You might as well have said jabberwock for a woozle as it would<BR>> have had just as much meaning for me. I was looking to do this without<BR>> code, i.e exactly like using a wait icon in Authorware would let you do<BR>> this without code.<BR>><BR>> I've got almost four days invested and haven't been able to get the<BR>> simplest little thing to work, i.e., getting the flow to wait for a<BR>> mouse<BR>> click, so you might imagine my fustration levels are reaching critical.<BR>><BR>> xerte-bounces@lists.nottingham.ac.uk wrote on 03/16/2009 05:06:45 PM:<BR>><BR>> > You have control of the swf source code, right?<BR>> ><BR>> > When you load the swf as a graphic into iconID, you will get an<BR>> > onLoad event fire. You can listen for that using an interaction icon<BR>> > and an event response. Then you can access the main timeline of your<BR>> > swf using the iconID.clip property.<BR>> ><BR>> > So in the event handler you ought to be able to do iconID.clip.<BR>> > play(), unless anything inside the swf is stopping it,<BR>> ><BR>> > J<BR>> ><BR>> > From: xerte-bounces@lists.nottingham.ac.uk on behalf of Gregory P<BR>> Sweet<BR>> > Sent: Mon 16/03/2009 18:59<BR>> > To: Authorware Professional; xerte@lists.nottingham.ac.uk<BR>> > Subject: [Xerte] swf won't play<BR>><BR>><BR>><BR>><BR>> IMPORTANT NOTICE: This e-mail and any attachments may contain<BR>> confidential or sensitive information which is, or may be, legally<BR>> privileged or otherwise protected by law from further disclosure. It is<BR>> intended only for the addressee. If you received this in error or from<BR>> someone who was not authorized to send it to you, please do not<BR>> distribute, copy or use it or any attachments. Please notify the sender<BR>> immediately by reply e-mail and delete this from your system. Thank you<BR>> for your cooperation.<BR>><BR>> _______________________________________________<BR>> Xerte mailing list<BR>> Xerte@lists.nottingham.ac.uk<BR>> <A href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</A><BR>> _______________________________________________<BR>> Xerte mailing list<BR>> Xerte@lists.nottingham.ac.uk<BR>> <A href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</A><BR><BR><BR>IMPORTANT NOTICE: This e-mail and any attachments may contain confidential or sensitive information which is, or may be, legally privileged or otherwise protected by law from further disclosure. It is intended only for the addressee. If you received this in error or from someone who was not authorized to send it to you, please do not distribute, copy or use it or any attachments. Please notify the sender immediately by reply e-mail and delete this from your system. Thank you for your cooperation.<BR><BR>_______________________________________________<BR>Xerte mailing list<BR>Xerte@lists.nottingham.ac.uk<BR><A href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</A><BR></FONT></P></DIV></BODY></HTML>