
This episode builds on the previous screencast in this series, ‘Storing & Displaying User Input Data’. That episode introduced most of the key elements for programming user interactivity and I’ll not be introducing any new programming elements here; it is really just a matter of using those elements in a slightly different way. If you’ve not already watched that screencast then I recommend that you do so before watching this one. If you have already worked through that episode then you should find tracking a user’s score quite straightforward.
In this screencast I develop the project that I demonstrated in the ‘Drag & Drop’ episode. So you might also want to watch that screencast to refresh your memory of how it was set up.
If you’d like to explore the example Mediator document that is demonstrated in this screencast, you can download it and edit it on your own computer (assuming that you have installed Mediator 9).
Duration: 11min 4secs
Level: Intermediate
Download (click a link below):

#1 by Cory Smith on 5th October 2010 - 1:51 am
Really glad I stumbled across this site. Thank you very much for all your video tutorials they are impressive and more importantly useful. Please continue to do them. Mediator 9 is an amazing piece of software that unfortunately seems not to have garnered the support it deserves. It is the only visual multimedia programing system that combines an easy to use object oriented programming interface with real power programming implemented in a way that non-programmers can implement.
Really interested in how to do a non-square screen and trying to implement what I think of as mini-apps, where you can call a second Mediator from the current one. Want to develop a simple calculator as a sample project that runs like a separate little program, would like to make it a library object that could be easily pasted into another Mediator 9 document as a minimum, or preferably a stand-alone file that is simply ran from another Mediator9 document just to see if it can be done.
Thanks for all the work.
#2 by John Hanson on 21st November 2010 - 12:41 pm
I have just got Mediator 9 and have downloaded all of your screencasts to teach myself how to use the software: 1 Basics, 2 Using Sounds, 3 Formatting and Master Pages, 4 Hotspots, 5 Drag and Drop, 6 Storing and Displaying User Input Data, 7 Tracking a User’s Score
Many thanks for them. Will you be doing anymore?
#3 by Jeremy on 21st November 2010 - 1:29 pm
Hi John! Hope you find the screencasts helpful. I will be adding more and I have a big one on advanced drag and drop in production. A new arrival in the family has meant that this has been delayed. If you subscribe to the screencasts through iTunes any new ones can be automatically downloaded. Have fun with Mediator!
#4 by Marco Teufel on 25th November 2010 - 11:47 am
Hi Jeremy,
currently i’m working on a mediator-project in my company. I’ve created a interactive presentation with a little game included on every page.
I wonder if there’s a possibility to store the text from input objects not just by clicking an extra button (submit oder something like that), maybe create an event “one page leave” ?
Because my probands are complaining about the fact that they have to click a store button to assign the text from input objects to a javascript:jQuery(’#commentform’).submit();variable AND afterwards click the next-page button. For the navigationbuttons like next/previous/home/exit, i’m using a topMasterPage-template.
So, a one-click-store-variable-and-go-to-next-page solution would solve the problem
Hope you have an idea?
BTW: Great tutorial videos. Keep up the good work!
Thanks in advance.
Marco
#5 by Jeremy on 8th December 2010 - 9:33 pm
Hi Marco. Thanks for your comment and sorry about the slow response. It is possible to do this by simply adding both the Assign action and the Go to Page action to a mouse click event on a single button. So long as the Assign action is placed before the Go to Page action it will execute before the user is taken to the next page. Let me know if this solves the problem or if I have misunderstood the question.
#6 by Steffen Raco on 21st January 2011 - 10:27 am
Hi Jeremy,
first of all a big THANK YOU for your tutorials. Unfortunately the Mediator Community is not as big as it should be (especially in Germany), so it is quite hard to find good tutorials.
Currently I am working on a Mediator-App where a kind of a “stop-watch” is necessary. I tried to figuere out how to create a fature that measures a time period between clicking “Start” and “Stop” based on your tutorials.
Any ideas how to do this easily – perhaps I have missed a feature within mediator 9 that does the trick already.
So far I have made the following steps:
- created a variable “Start”
- created a variable “Stop”
how can I assigne a timestamp to these variables? It must be something with @time, right? In the end I just have to check the difference between A and B.
Thanks ina advance
Steffen
#7 by Jeremy on 24th January 2011 - 1:10 pm
Thanks for your comment, Steffen. Instead of using the @Time system variable, you should use @Timer. I quote from the Mediator help files…
That should solve your problem. Good luck!
#8 by Elisabeth on 15th February 2011 - 4:53 pm
Hi Jeremy!
It’s nice to see more people working with Mediator. I am actually using Mediator in my thesis to update an application.
Are you familiar with using databases in Mediator? I am having some difficulties that the manual doesn’t explain, and I was hoping someone with more experience could answer this.
Is it possible to store the return values from my SQL queries somewhere (perhaps in an array), or do I have to use the DB pointer? If not, can I use the DB pointer in a script instead of the (limited) DB pointer event?
I hope you could answer this for me, it would mean alot! Matchware’s supporting response time leaves something to be desired.
Best regards,
Elisabeth
#9 by Jeremy on 15th February 2011 - 10:14 pm
Hi Elisabeth!
I’m afraid that I’ve never delved deep into the murky world of using databases with Mediator. I’ve been put off by the inadequate documentation and the fact that it seems far from intuitive. So, I’m sorry but I’m not able to help you out on this. If you do solve the problem then it would be great if you could post a comment explaining what you did.
Anyone else out there able to help Elisabeth?
#10 by Elisabeth on 16th February 2011 - 11:00 am
Hi Jeremy!
Thanks for the fast reply. Your blog is the closest thing to a support forum that I could find! It really is great to find a helping hand, in situations like this one. So thanks, anyway
I do have a bad hunch about this problem. I just hope I find a neat enough way to solve it, for the sake of my thesis!
#11 by Jeremy on 17th February 2011 - 8:11 am
What is your thesis about?
#12 by Elisabeth on 17th February 2011 - 2:20 pm
I am upgrading this tool for speech and language pathologists, made in Mediator. It’s made for children that has different kinds of problems with their pronunciation. Right now everything is hard coded, so I’m meant to introduce some more advanced settings to it. I doubt that Mediator was build for these kind of tasks. What do you think about it?
Anyway, I “solved” the problem with by using the drag’n'drop programming. It’s not pretty, it’s very repetetiv, but it works! Hope to hear from Matchware soon about a smoother solution!
#13 by jakob on 12th June 2011 - 12:19 pm
Can you do a short tutorial on how to do an input object that allows the user to hit enter without it leaving the input object
#14 by Jeremy on 12th June 2011 - 7:26 pm
Hi Jakob
You’re not the first to raise this issue. Trouble is, I’m not sure it is actually possible to do what you describe in Mediator (even though it really should be). If anyone knows better and would like to enlighten me (and anyone else who might follow these comments) then please do. If I discover a way to do this, I’d be happy to post a tutorial explaining the process.
#15 by Wendy on 14th June 2011 - 8:09 pm
Jeremy,
I like your screencasts. They have helped a lot. Can you tell me how to create a group for labels to use in a hot spot presentation?
#16 by Jeremy on 15th June 2011 - 7:25 pm
Hi Wendy. Thanks for your nice comment. Not sure I completely understand what it is you want to do. Could you give a little bit more detail?
#17 by Hannah on 9th July 2011 - 9:22 am
Hello! Thank you so much for all this help!
I am creating a reward system for a class I teach and I want it to be a .swf file that I can use every week. The idea is that the class bank time every week to use at the end of term on whatever they wish. I was wondering if you know whether it is possible to give a class a score and save that score in the .swf file, so that the next lesson, it doesn’t lose the minutes the kids have banked?
Thank you
Hannah x
#18 by Heather on 26th July 2011 - 11:39 pm
I am using Mediator 9 to create a simple drag and drop game. I am stuck on the feedback bit – I cant figure out how to set it up to give two pieces of feedback. I was thinking of providing a sound or even a graphic as a method of feedback to the gamer. Any help would be much appreciated.
#19 by wil on 27th July 2011 - 6:32 pm
Will you be doing any more screencasts?
#20 by wil on 28th July 2011 - 9:19 am
Hello Heather,
Unfortunately Mediator will not allow you to save any information back to a swf, your probably best looking for a different way to develop your app, otherwise you might be able to code sort of xml feedback system using the visual basic side. As for your feedback question, are you asking how to implement it, or what to use? I currently use a large tick and cross to signal to the user when something is right or wrong. i get them to fade on or off the screen, i can show you an example if you want.
#21 by Heather on 28th July 2011 - 1:39 pm
Jeremy,
It would be great if you could show me your example. A tick and cross system would be ideal for what i want. Thank you Jeremy!
#22 by Jeremy on 28th July 2011 - 2:17 pm
Hi Heather
That last comment was from another reader (Wil), so I can’t claim the credit. I do plan to post a screencast on advanced drag & drop techniques for Mediator which you might find useful. It has been in production for a while but it’s been on hold due to other priorities. I’m hopeful that I’ll get it out by the end of August.
#23 by Jeremy on 28th July 2011 - 2:30 pm
Yes – I’ve had other priorities of late but hope to get back to screencasting in the near future.
#24 by wil on 28th July 2011 - 2:49 pm
I have two examples, the first one, implements an advanced drag and drop (it remembers were tiles are dropped, even if you replace them), but has the user feedback of a tick and cross
http://www.tes.co.uk/teaching-resource/Network-Tester-6085625/
and the second, uses a different technique to drag and drop but has the same user feedback of the tick and cross.
http://www.tes.co.uk/teaching-resource/Spreadsheet-keyword-quiz-6088421/
I think you’ll need an tes account to view them, but once logged in you check out some of my other mediator projects. Ill be happy to help with any issues.
#25 by Heather on 28th July 2011 - 6:17 pm
Wil,
Would be very grateful if you could show your example of the tick and cross. Thank you
#26 by wil on 28th July 2011 - 9:55 pm
the two examples above show the tick and cross in use!
#27 by wil on 31st July 2011 - 9:33 am
hmm, looks like posts with links needs to be vetted before they become ‘live’.
http://www.tes.co.uk/teaching-resource/Spreadsheet-keyword-quiz-6088421/
#28 by wil on 31st July 2011 - 9:34 am
maybe not.
http://www.tes.co.uk/teaching-resource/Spreadsheet-keyword-quiz-6088421/
#29 by wil on 31st July 2011 - 9:35 am
http://www.tes.co.uk/teaching-resource/Network-Tester-6085625/
#30 by Shelby on 27th November 2011 - 5:48 am
I have a quick question. How do you embed a video from you tube onto mediator 9?
#31 by wil on 30th November 2011 - 8:26 pm
you need to extract and save the video from youtube, and then embed it that way. try using something like http://www.zamzar.com to extract and save the video. Let me know if it helps.
#32 by MediatorUser on 24th January 2012 - 11:08 pm
Hi, im using mediator for my OCR Nationals and i am trying to put a global score system in. On Question if you click the correct answer then it assigns score+1 then on my spot the difference question find all five and score+1 again. Then on my result page i have event on page If Score=1 then it shows a personal message and changes input box to ‘value as expression’ Score. I have another If Score=2 then a different message, but only Score=1 seems to work. This is probably hard to understand but can anyone help?
#33 by Jeremy on 25th January 2012 - 9:30 am
I suggest you try running the document with Debug turned on. Take a close look at the values being set for the score variable. Is it updating correctly? If it is then your problem would be with that final IF… conditional. If it isn’t then you need to see where the problem occurs and recheck your programming.
Hope this helps and good luck with your OCR Nationals.
#34 by MediatorUser on 25th January 2012 - 7:12 pm
I fixed it ^^ and thanks Jeremy
#35 by MediatorUser on 27th January 2012 - 9:27 pm
Hi again Jeremy, I was wondering if you knew if there was a way of making a .wmv auto start in full screen?
#36 by MediatorUser on 3rd February 2012 - 11:27 pm
Hi Jeremy, me again. Do you now how to make a specific event happen when pressing a button in a message box? ie. “OK” “Cancel” etc
Thanks in advance
#37 by MediatorUser on 3rd February 2012 - 11:27 pm
know* fail….