Does anyone know how to include two or more links to online projects in an html page and prevent them from running until the user clicks the green flag?
I know how to create the links. What I don't know how to do is to keep the applets from starting as soon as the page is loaded instead of waiting until the user clicks the green flag.
Last edited by dbal (2008-06-08 23:14:44)
Offline
dbal wrote:
Does anyone know how to include two or more links to online projects in an html page and prevent them from running until the user clicks the green flag?
I know how to create the links. What I don't know how to do is to keep the applets from starting as soon as the page is loaded instead of waiting until the user clicks the green flag.
I have heard of people implementing a work-around for this problem where they code the project so that it doesn't actually do anything until the user initiates an action, such as pressing the Space bar key. So the Green Flag scripts fire but the projects wait for user input before proceeding.
Offline
Paddle2See wrote:
dbal wrote:
Does anyone know how to include two or more links to online projects in an html page and prevent them from running until the user clicks the green flag?
I know how to create the links. What I don't know how to do is to keep the applets from starting as soon as the page is loaded instead of waiting until the user clicks the green flag.I have heard of people implementing a work-around for this problem where they code the project so that it doesn't actually do anything until the user initiates an action, such as pressing the Space bar key. So the Green Flag scripts fire but the projects wait for user input before proceeding.
That's an interesting approach and I will certainly keep it in mind for the future. Unfortunately, it doesn't help me much in this case. I am writing an article for online publication that links to five existing projects written and shared by others on the Scratch website. I ended up creating a separate HTML page for each project and creating links to the individual HTML pages in the main page of the article. Then when the user clicks on a link, the separate HTML page opens in a new window with the applet running. It's not a great solution but it is better than having five applets all running at the same time when the user loads the main HTML page.
Thanks for the information.
Offline
JSO wrote:
However, i don't think you can have multiple java appletts running on the same time...
You can, but it will really slow things down, particularly if you have a cheap HP laptop like mine.
Offline