Following a recent discussion in the General Problems forum concerning Scratch files, I kicked off the idea of creating a new Moodle filter for this file-type.
Scratch files are created in the Scratch application downloadable free from http://scratch.mit.edu/
and there are at least 8000 projects freely available through the Scratch community, mainly aimed at youngsters,
...or you could create your own!
Now, my coding did not stand up to the challenge and Johannes Albert stepped in and rewrote the filter - and taught me a great deal on the way!
We have tested the filter on Firefox, Safari & IE7, and it works well wherever Java is enabled.
To download the filter, click this link: Scratch filter
...unzip the file, so that it creates a folder 'scratch',
...drag this folder into your 'filter' folder (in public_html, moodle_html, or similar).
Then go to Site Administration->Modules->Filters and open the eye to enable the Scratch filter.
You can then create a link to a Resource file of the type .sb, or simply edit a topic summary
to create a hyperlink to show the Scratch object (a Scratchboard) within you course page.
Have fun,
John White
Johannes A. Albert
Haven't installed this filter as yet, am waiting to do an upgrade first and then I will install on the upgraded version.
Once I have installed, I'll let you know how it all goes.
Thanks for your help.
Jo
http://scratch.mit.edu/forums/viewtopic.php?id=191&p=1
and it fixed the problem.
By putting everything in one folder and creating the .htm file it worked fine.
I think just created a link in Moodle to link to the .htm file.
There are many other suggestion on the link, and I thought I would also share this great example of scratch in action in Moodle:
http://www.meridianmoodle.com/course/view.php?id=35
Here's the link for the most recent version: http://scratch.mit.edu/static/misc/ScratchApplet.jar
This is painful. Can anyone advise me how this should work.
I've installed the scratch filter and added a label, but as others before me no progress bar.
I also tried just adding the code in. First I used the link to the scratch page.
<applet archive="ScratchApplet.jar" codebase="http://scratch.mit.edu/static/misc" code="ScratchApplet" style="display: block;" id="ProjectApplet" width="482" height="387"><param value="../../static/projects/MrLarkin/772425.sb" name="project"></applet>
It worked but is painfully slow. This is slow on my home PC. It will never work at school with 30+ kids all trying to use it at once.
Then I tried using their codebase and my local file.
</applet> <applet height="387" width="482" archive="ScratchApplet.jar" codebase="http://scratch.mit.edu/static/misc" code="ScratchApplet" style="display: block;" id="ProjectApplet"><param value="http://localhost/file.php/2/AsteriodsFinalGame.sb" name="project" /></applet>
Again a non moving bar.
It seems to me that it is the only the paths for my codebase and game that are different. Can anyone tell me how to successfully use my local codebase and file. My file is in /var/moodledata/2/ and my ScratchApplet.jar and soundbank.gm are in /var/www/moodle/filter/scratch/
Many thanks,
Brian
Best,
Rick
I am looking for "filter_scratch-latest.zip" but the site below doesn't work. Can someone post the file on this forum?
TIA,
-Ruwan J.
http://johannesalbert.com/files/filter_scratch-latest.zip