[Xerte] Re: Scoring in Xerte
Kemp Johnathan
johnathan.kemp at ntlworld.com
Tue Aug 2 19:44:28 BST 2011
Sorry Deborah,
I missed you posting this.
If I understand you correctly you have an exercise in a swf that generates a
score.
I think what Julian is saying here is that _level0.engine references the
Xerte engine.
I think (I am no Flash expert) that it may be that since your swf will run
in Xerte, when it is running in Xerte it will have access to Xerte via
_level0.engine, so it would be valid to create a variable in your swf called
_level0.engine.debsScore1 = 22.
I think this would persist across different pages in Xerte so that you could
have several score variables and then add them up in a final Xerte page.
As a test try setting a value in your swf e.g. _level0.engine.debsScore =
20;
Then in the Xerte page that is running your swf try adding a script icon
after the swf has loaded, or just select an existing script icon that is
sequenced after the swf has loaded (lower down in the project tree) and try
adding the line
debug("debsScore is " + _level0.engine.debsScore);
When you preview the project a debug window should open and display
"debsScore is ..." where ... might with a bit of luck be 20. If the swf has
not yet defined the variable or I am just plain wrong then you will get a
value of "undefined" displayed.
Give it a try and see how you get on.
I'm sorry I can't be more help, but whilst I know my way around the page
wizards I don't (as yet) do any work in Flash that then needs to interact
with Xerte.
Kind regards
Johnathan
On 28 July 2011 04:47, Deborah Delin <admin at strivney.com> wrote:
> Thanks Jonathan!
>
> I don't really know how to do what Julian said:
>
> *OK, the way to do it is to bounce your score off xerte from the swfs that
> set them and then display them in another swf where you retrieve them.*
> *
>
> So, in a quiz, or similar you can se the score, in a place where the other
> swf can read it:*
>
>
>
> *_level0.engine.debsData.score1 = 99;*
>
> *
> *
>
> level0.engine is Xerte? Don't I need a function in my SWF to send the
> score to Xerte? I'm a beginner at AS2 and am lost. If one of the AS2
> whizzes could help with an idiot's guide that would be great, otherwise it
> will wait until Julian gets back.
>
>
> Deborah
>
>
>
> This message and any attachment are intended solely for the addressee and
> may contain confidential information. If you have received this message in
> error, please send it back to me, and immediately delete it. Please do not
> use, copy or disclose the information contained in this message or in any
> attachment. Any views or opinions expressed by the author of this email do
> not necessarily reflect the views of the University of Nottingham.
>
> This message has been checked for viruses but the contents of an attachment
> may still contain software viruses which could damage your computer system:
> you are advised to perform your own checks. Email communications with the
> University of Nottingham may be monitored as permitted by UK legislation.
>
> _______________________________________________
> Xerte mailing list
> Xerte at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>
> This message and any attachment are intended solely for the addressee and
> may contain confidential information. If you have received this message in
> error, please send it back to me, and immediately delete it. Please do not
> use, copy or disclose the information contained in this message or in any
> attachment. Any views or opinions expressed by the author of this email do
> not necessarily reflect the views of the University of Nottingham.
>
> This message has been checked for viruses but the contents of an attachment
> may still contain software viruses which could damage your computer system:
> you are advised to perform your own checks. Email communications with the
> University of Nottingham may be monitored as permitted by UK legislation.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20110802/f9f6ccf7/attachment.html>
More information about the Xerte
mailing list