This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-05-02 00:48:29

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

A javaScript API for projects!

Well i write webpages and I actually would appreciate something like a javaScript Api for scratch player say

for a webpage we can do like

var ScratchProject = document.getElementById("ScratchPlayer");

ScratchProject.Start();

ScratchProject.Stop();

or something like

var ScratchProject = new ScratchApplet();
ScratchProject.Src = "Link to project";
ScratchProject.LoadVariables()  = "From a file ";
etc

and some other basic functions , Now the actual functionality that will be added via this is like
say u make a website and add a scratch applet to it

via localStorage of HTML5 u can actually save the project file as a CACHE and actually do operations like save etc x) .. so would be intresting to see if MIT team could actually give us something like that  big_smile   big_smile


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#2 2011-05-02 17:47:42

Rocker98585
Scratcher
Registered: 2010-12-26
Posts: 39

Re: A javaScript API for projects!

smile
neutral
sad

The Scratch program still isn't opening!

Offline

 

#3 2011-05-02 20:33:05

ihaveamac
Scratcher
Registered: 2007-09-22
Posts: 1000+

Re: A javaScript API for projects!

I like the part where JavaScript can start and stop a project.  smile


~ihaveamac - visit ihaveamac.net

Offline

 

#4 2011-05-02 23:26:19

bbbeb
Scratcher
Registered: 2009-06-11
Posts: 1000+

Re: A javaScript API for projects!

I support, to a degree.
What you said was confusing though.


Back in my day.... there were no laws that censored the internet... now, there are.... nah.

Offline

 

#5 2011-05-03 00:40:21

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

Re: A javaScript API for projects!

bbbeb wrote:

I support, to a degree.
What you said was confusing though.

Yeah  sad  , i know my language sometimes can be confusion


**telling u the secret , english is NOT my first language!!!


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#6 2012-07-11 11:07:22

comp09
New Scratcher
Registered: 2010-08-30
Posts: 4

Re: A javaScript API for projects!

I would like something that can get the description of a project when it changes. I need to have the latest description without having to look for description changes manually and have to update them.

Offline

 

#7 2012-07-11 11:11:13

comp09
New Scratcher
Registered: 2010-08-30
Posts: 4

Re: A javaScript API for projects!

EDIT: this is for my website

Offline

 

#8 2012-07-11 11:33:39

SciTecCf
Scratcher
Registered: 2011-11-23
Posts: 1000+

Re: A javaScript API for projects!

comp09 wrote:

I would like something that can get the description of a project when it changes. I need to have the latest description without having to look for description changes manually and have to update them.

Necropost much?


http://bit.ly/LCZEJRhttp://bit.ly/LSONcOhttp://bit.ly/LF3vIc
http://trinary.site40.net/images/scratchrank.php?username=SciTecCf&display=small

Offline

 

#9 2012-07-11 12:33:14

Jackieee
New Scratcher
Registered: 2012-07-05
Posts: 100+

Re: A javaScript API for projects!

comp09 wrote:

I would like something that can get the description of a project when it changes. I need to have the latest description without having to look for description changes manually and have to update them.

Use http://scratch.mit.edu/api/getprojectinfobyid/##### and the description is the third field.

Offline

 

Board footer