Is it possible to connect scratch with javascript? I'm most interested in the date/time features.
Offline
javascript can't connect directly, but you can connect to an arbitrary socket with some form of bridge, such as:
http://stephengware.com/projects/javasocketbridge/
Offline
You can connect to Scratch using any Programming Language that has networking.
Offline
e.g. python
Offline
markyparky56 wrote:
e.g. python
so does that mean no?
Offline
I dont know, depends what your going to try to do with javascript and scratch. The scratch applet is a .jar file and requires java, but i geuss your meaning to link it in with the programing. I dont know, but its likely you can link them.
Offline
If you can get networking with Javascript then sure, it's possible.
Offline
i think its possible, but maybe not, we'll have to find out.
Offline
what do you mean by unsafe? Viruses? Crashing the computer? Destroying Scratch?
Offline
hmmm... dangerous, but is it possible to scan it before you do it?
Offline
See the link chalkmarrow posted - it's genius (!!!) and when I find some time I'm going to do something reeeaaallly cool with it xD
This Scratch-JavaScript connection is so cool because this allows Scratch to do a lot of web based stuff with a very easy to learn and pre-installed on every system language
And you could just share your scripts on a webpage... (click the link and watch Scratch be magic...)
Offline
I see its very intresting, but i dont see how thats helpful, but then... iv not really learnt any html or java yet,
Offline
then check out the HTML/Website Building Topic in Inspiration and More. It should be on the front page still...
Offline
JSO wrote:
See the link chalkmarrow posted - it's genius (!!!) and when I find some time I'm going to do something reeeaaallly cool with it xD
This Scratch-JavaScript connection is so cool because this allows Scratch to do a lot of web based stuff with a very easy to learn and pre-installed on every system language![]()
And you could just share your scripts on a webpage... (click the link and watch Scratch be magic...)
How would you use it though? It talks about putting a script in an HTML document. I wish it wouldn't need a download though...
Offline
16Skittles wrote:
then check out the HTML/Website Building Topic in Inspiration and More. It should be on the front page still...
I cant find it.
Offline
Offline
It is possible to get the date and time right in scratch...
Well, in streak. There is a date/time block in streak 0.2.
If you want it in scratch itself, and are up for some hacking,
then tell me and I'll give you the code.
Offline
well ive been thinking bout this recently too it gets converted to java or python at some point because thats what the server runs
Offline
blackbird1676 wrote:
well ive been thinking bout this recently too it gets converted to java or python at some point because thats what the server runs
I dont see why it would go to python, the project viewer is Java-something, i think it acts as a complier for the .sb code. I have no idea how they're coded though, if i try to open it in a text-editor it gets all mucked up because its not in plain text or something.
Offline
scratch is just a Squeak GUI as in its coded like this (i cant code squeak too well so ill just use english/basic/c cross
) dim blockimput as vars
blockimput = (<block>.<blockinputbox1>)
if <blockname>.blockposition = (x=110)(y=-110) then sprite.xposition = (currentxpos + blockimpput)*/i used step block is what im demoing)\*
Offline
blackbird1676 wrote:
scratch is just a Squeak GUI as in its coded like this (i cant code squeak too well so ill just use english/basic/c cross
) dim blockimput as vars
blockimput = (<block>.<blockinputbox1>)
if <blockname>.blockposition = (x=110)(y=-110) then sprite.xposition = (currentxpos + blockimpput)*/i used step block is what im demoing)\*
Are you sure? Scratch was coded in Squeak, yes, but im not sure about it being a squeak GUI...
Last edited by markyparky56 (2010-01-16 13:19:02)
Offline
yah pretty much so its like a code overlay ive even
Offline