Could somebody please explain these.
How does Scratch become the online player ( in to Java )?
It has a .jar file, in which it reads the binary of the Scratch project and converts it into the player.
Could you recode Scratch to only run in the Java player?
It may be possible.
Can you change the player?
Yes, you need to know java though. You change the .jar extention to .zip and then extract. You then import this in to a Java editing program.
I also belive that Panther has done this.
Can you put it on a mobile phone, especialy touch screen. As it is coded in .jar?
No answer.
Last edited by johnnydean1 (2010-05-23 15:56:28)
Offline
Try reading this: http://scratch.mit.edu/forums/viewtopic.php?id=191 its not directly about your question, but it may answer one of your questions.
Offline
Oh, the scratch player is made in Java dn LOGO, which is sort of linked. If mathwhizz will come here he should be able to explain.
Offline
JSO wrote:
The java player just reads the actual Scratch project file in binary, just like Scratch does.
To put it simply in the topic post:
Read as binary.
Offline
Ok so anyway to recode it to only run in player?
And
Anyway to edit the player?
Offline
johnnydean1 wrote:
Ok so anyway to recode it to only run in player?
And
Anyway to edit the player?
Yeah, download the javaplayer from that link i gave you. change the file extension to .zip, extract the contents and find a good java decompiler. Hope you know java and LOGO.
Offline
johnnydean1 wrote:
Ok I know a bit so Ill try
Java, not javascript. Javascript is for webpages.
Offline
I can do it, but can I keep it this way perminatly?
Offline
johnnydean1 wrote:
I can do it, but can I keep it this way perminatly?
Just remember to save the file, then you add the file extension .jar to the end of it. then it should work.
Offline
Ok cool. Could we then make this into flash?
Offline
johnnydean1 wrote:
Ok cool. Could we then make this into flash?
That's not possible as of now, though I do seem to remember somebody programming a beta of a Flash player for Scratch projects a while back. I'm not sure what happened to that.
However, Scratch 2.0 - an upcoming version of Scratch - will be entirely Flash-based.
Last edited by coolstuff (2010-05-22 16:45:38)
Offline
I understand that, but is there no java to flash converter?
Offline
johnnydean1 wrote:
I understand that, but is there no java to flash converter?
Nope. You'll have to stick with Java for now.
And it should be noted that each project doesn't convert to Java. It converts to a format which the Java applet reads, and then executes.
Last edited by coolstuff (2010-05-22 17:23:13)
Offline
krackers wrote:
can you give directions on how you changed it to jar?
You can't. The online player is the same for all projects - it just runs the Scratch file, a bit like an application opening a file. If you want to put it on another site, you can always embed it (there's a link in the sidebar).
Offline
krackers wrote:
Is there any way to run it as a jar file on your computer?
Maybe this topic will answer your question:
http://scratch.mit.edu/forums/viewtopic.php?pid=763#p763
It shows how to embed it without actually uploading it to the website first. You might be able to tweak that to make it run directly from your computer - maybe you could make a webpage? I'm afraid that's the extent of my knowledge, but you may want to contact the Scratch team for more information. While the topic doesn't address your question directly, it may be very helpful.
Offline
krackers wrote:
Any way to make it use panther instead of scratch to run? They're both technically the same, but panther has blocks that scratch can't interpret...
That's a good question, maybe the Panther team can work on that.
Offline
Well with .jar you may be able to change the code slightly to fit the screen, and then use it on phones.
Can you imagine Scratch on your phone, maybe touchscreen?
Would it work??
Offline