<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Dear Julian</DIV>
<DIV>&nbsp;</DIV>
<DIV>I have got some movies from Sony DVD camcorder. They are in MPEG format. Flash does not seem to import them. Is there any way of opening them in Xerte?</DIV>
<DIV>Regards</DIV>
<DIV>Ashok Ranade<BR><BR>--- On <B>Tue, 21/10/08, Julian Tenney <I>&lt;Julian.Tenney@nottingham.ac.uk&gt;</I></B> wrote:<BR></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid">From: Julian Tenney &lt;Julian.Tenney@nottingham.ac.uk&gt;<BR>Subject: RE: [Xerte] cmi.core.score.raw datatype?<BR>To: "Xerte discussion list" &lt;xerte@lists.nottingham.ac.uk&gt;<BR>Date: Tuesday, 21 October, 2008, 7:22 PM<BR><BR><PRE>I'd have thought the APIWrapper would try and fix any dodgy datatypes coming
at it, but I'm not sure,

-----Original Message-----
From: xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] On Behalf Of Mark Tomlinson,
AC&amp;S Ltd
Sent: Tuesday, October 21, 2008 2:50 PM
To: 'Xerte discussion list'
Subject: FW: [Xerte] cmi.core.score.raw datatype?

Oops.

Hit send too quickly



That was why I was using Math.round() as I also thought that BUT:


strScore=(m1score+m2score)/18*100;
_level0.setValue('cmi.core.score.raw',strScore);


Works and if m1score+m2score equates to 6, then the score ends up in the LMS
as 33.33333333  So this LMS obviously accepts non integer values.

It must also be getting cast to a string somewhere, although I am not
explicitly doing that.

Mark


-----Original Message-----
From: xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: 21 October 2008 14:46
To: Xerte discussion list
Subject: RE: [Xerte] cmi.core.score.raw datatype?

Does it need to be an integer?

-----Original Message-----
From: xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] On Behalf Of Mark Tomlinson,
AC&amp;S Ltd
Sent: Tuesday, October 21, 2008 2:44 PM
To: 'Xerte discussion list'
Subject: RE: [Xerte] cmi.core.score.raw datatype?

Yes, it is a percentage.

Thanks


Mark

-----Original Message-----
From: xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] On Behalf Of Martín Dobovšek
Sent: 21 October 2008 14:41
To: Xerte discussion list
Subject: Re: [Xerte] cmi.core.score.raw datatype?

Mark:

Check that value is UNDER or equal 100. It must be string

Best regards

Martin

--- "Mark Tomlinson, AC&amp;S Ltd"
&lt;mark.tomlinson@acns-group.com&gt; escribió:

&gt; What data type is cmi.core.score.raw supposed to be?
&gt; 
&gt;  
&gt; 
&gt; If I call : 
&gt; 
&gt;  
&gt; 
&gt; _level0.setValue('cmi.core.score.raw',"50");  as a
'hard coded' value this
&gt; works and sets the score as 50 in the LMS
&gt; 
&gt;  
&gt; 
&gt; If I call:
&gt; 
&gt;  
&gt; 
&gt;
_level0.setValue('cmi.core.score.raw',Math.round((m1score+m2score)/18*100));
&gt; This fails.  I assumed because it was not a string?
&gt; 
&gt;  
&gt; 
&gt; If I call:
&gt; 
&gt;  
&gt; 
&gt;
_level0.setValue('cmi.core.score.raw',String(Math.round((m1score+m2score)/18
&gt; *100)));  This also fails.
&gt; 
&gt;  
&gt; 
&gt;  
&gt; 
&gt; In all failing cases I get a JavaScript alert stating 'Incorrect Data
Type'.
&gt; If I turn on debugging in apiwrapper.js, I get :  Incorrect Data Type   No
&gt; Error
&gt; 
&gt;  
&gt; 
&gt;  
&gt; 
&gt; Anyone any ideas what I am doing wrong here?
&gt; 
&gt;  
&gt; 
&gt; Cheers
&gt; 
&gt;  
&gt; 
&gt; Mark
&gt; 
&gt;  
&gt; 
&gt;  
&gt; 
&gt;  
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt;  &lt;http://www.acns-group.com&gt; 
&gt; 
&gt; Creating Excellence Together
&gt; 
&gt;  
&gt; 
&gt; 
&gt; 
&gt; Mark Tomlinson
&gt; Managing Director 
&gt; 
&gt; AC&amp;S LTD
&gt; 35A Victoria Road East
&gt; Thornton-Cleveleys
&gt; Lancashire
&gt; FY5 5BU
&gt; UK 
&gt; 
&gt; 
&gt;  &lt;mailto:mark.tomlinson@acns-group.com&gt;
mark.tomlinson@acns-group.com 
&gt; 
&gt; 
&gt; tel: 
&gt; fax: 
&gt; mobile: 
&gt; 
&gt; +44 1253 855 997
&gt; +44 870 762 6818
&gt; +44 789 968 7257 
&gt; 
&gt;  
&gt; 
&gt; 
&gt; 
&gt;  
&gt; 
&gt;  
&gt; 
&gt; &gt; _______________________________________________
&gt; Xerte mailing list
&gt; Xerte@lists.nottingham.ac.uk
&gt; http://lists.nottingham.ac.uk/mailman/listinfo/xerte
&gt; 



      Yahoo! Cocina
Recetas prácticas y comida saludable
http://ar.mujer.yahoo.com/cocina/

_______________________________________________
Xerte mailing list
Xerte@lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte
_______________________________________________
Xerte mailing list
Xerte@lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte

_______________________________________________
Xerte mailing list
Xerte@lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte
_______________________________________________
Xerte mailing list
Xerte@lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte
</PRE></BLOCKQUOTE></td></tr></table><br>
      <!--1--><hr size=1></hr> Connect with friends all over the world. <a href="http://in.rd.yahoo.com/tagline_messenger_1/*http://in.messenger.yahoo.com/?wm=n/"> Get Yahoo! India Messenger.</a>