Discuss Scratch
- Discussion Forums
- » Developing Scratch Extensions
- » Auto-starting an embedded scratchx project
- orw
- Scratcher
6 posts
Auto-starting an embedded scratchx project
I'd like to embed a scratchx project in an html page as can be done in scratch (see https://wiki.scratch.mit.edu/wiki/How_to_Embed_a_Project )
More specifically, I'd like it to autostart the project in embedded more, so that the user is not required to press the green flag.
In normal scratch, it can be done by calling https://scratch.mit.edu/projects/embed/<project-id>/?autostart=true for any project-id. This opens scratch is full-screen mode and starts the program automatically.
How can I do the same with ScratchX?
More specifically, I'd like it to autostart the project in embedded more, so that the user is not required to press the green flag.
In normal scratch, it can be done by calling https://scratch.mit.edu/projects/embed/<project-id>/?autostart=true for any project-id. This opens scratch is full-screen mode and starts the program automatically.
How can I do the same with ScratchX?
- savaka
- Scratcher
1000+ posts
Auto-starting an embedded scratchx project
this was inaccurate
Last edited by savaka (May 21, 2017 21:02:20)
- orw
- Scratcher
6 posts
Auto-starting an embedded scratchx project
I do load projects from a server (e.g. github) by providing url=<something> (which can be a project, not just an extension). I'm just looking for a way to autostart the project when it's loaded, instead of going into edit mode.
- orw
- Scratcher
6 posts
Auto-starting an embedded scratchx project
To answer my own question (for others who might need it), autostart is possible, but fullscreen is not. When Scratch runs in ScratchX mode (extensionDevMode='true' in flashargs), it forces start in edit mode.
- Discussion Forums
- » Developing Scratch Extensions
- » Auto-starting an embedded scratchx project