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

#1 2007-06-18 18:49:41

Spence
Scratcher
Registered: 2007-06-18
Posts: 14

Can I have some advice?

I am making my own website (Shiningswords.com). Can anyone tell me how to make a project as a flash game and put it on my website??

I am up for anything. PLZ!!!!!!   yikes

Offline

 

#2 2007-06-18 18:59:56

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Can I have some advice?

To embed a project into a web site refer to this thread
http://scratch.mit.edu/forums/viewtopic.php?pid=763#p763
(should have looked at the faq!)

And by the way scratch projects run in java not flash.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#3 2007-06-18 19:09:21

Spence
Scratcher
Registered: 2007-06-18
Posts: 14

Re: Can I have some advice?

Thank you so much!

Offline

 

#4 2007-06-18 19:24:19

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Can I have some advice?

Ok before you can make it work you need to put these files into the directory that contains your projects


1. http://scratch.mit.edu/static/misc/ScratchApplet.jar
2. http://scratch.mit.edu/static/misc/soundbank.gm

(for soundbank.gm, if you're using firefox, right-click and select "Save Link As..." to download)

After copying these to a folder on your computer, put the .sb file in the same folder. Then, create a .htm file with the following contents:

Code:

<html>
<body>
<applet id="ProjectApplet" style="display:block" code="ScratchApplet" codebase="./" archive="ScratchApplet.jar" height="387" width="482">
<param name="project" value="testproject.sb">
</applet>
</body>
</html>


And there you go all you need is an online directory and very basic knowledge of html.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#5 2007-06-18 20:42:47

Spence
Scratcher
Registered: 2007-06-18
Posts: 14

Re: Can I have some advice?

What if I don't have very basic knowledge of html? I have downloaded it but I don't know how to do the html thing. Can you translate?

Offline

 

#6 2007-06-18 21:52:40

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Can I have some advice?

I can put it any simpler than this

Ok first download

1. http://scratch.mit.edu/static/misc/ScratchApplet.jar
2. http://scratch.mit.edu/static/misc/soundbank.gm

and then put the files on your website's main place where it keeps its files.

Have your scratch project ready.

And then open note pad and type this in.
and replace projectnamegoeshere with your project name.


<html>
<body>
<applet id="ProjectApplet" style="display:block" code="ScratchApplet" codebase="./" archive="ScratchApplet.jar" height="387" width="482">
<param name="project" value="projectnamegoeshere.sb">
</applet>
</body>
</html>


save this file as scratchproject.htm


Once you have done that upload the files you made all to your website


So go to the uploader

Make sure these files are uploaded

1. http://scratch.mit.edu/static/misc/ScratchApplet.jar
2. http://scratch.mit.edu/static/misc/soundbank.gm

And then upload your newly created scratchproject.htm file and make sure this file is beside the others.

and you are done.

when someone goes to www.yoursitename.com/scratchproject.htm

they will see the project you uploaded

I can't explain it any simpler. If you are creating your own website then you should at least be able to do this.

Last edited by archmage (2007-06-18 21:54:26)


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#7 2007-06-20 10:45:09

Spence
Scratcher
Registered: 2007-06-18
Posts: 14

Re: Can I have some advice?

lol, ty

Offline

 

Board footer