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

#1 2011-03-30 16:36:39

scratcher7_13
Scratcher
Registered: 2011-02-09
Posts: 1000+

Experimental Viewer

I have figured out how to edit the experimental viewer. The only thing I need to know is, does anyone know where the code for the blocks are?


♫ 90% of teens can't do math. If you are one of the 40% of teens who can, copy and paste this into your signature. ♫♪
http://dl.dropbox.com/u/6273449/BlockLibraryTitle.pnghttp://i.imgur.com/mr9Hf.gif

Offline

 

#2 2011-03-30 16:51:44

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: Experimental Viewer

Block specs i suppose, can you tell me how to get into the source? PLEASE!


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#3 2011-03-30 16:53:14

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: Experimental Viewer

PLEASE TELL US WE NEED TO KNOW. Otherwise we can’t help you.


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#4 2011-03-30 16:59:00

scratcher7_13
Scratcher
Registered: 2011-02-09
Posts: 1000+

Re: Experimental Viewer

Yes. If you right click on the very edge of the screen in the experimental viewer, you can select 'Save Page as...' Then It will save not only the HTML file, but also a folder called (whatever you save the page as)_files. In this folder is a file called Scratch.swf. This can be decompiled with a flex decompiler. After you edit the action script, you can recompile it and replace Scratch.swf with your new Scratch.swf.

I know the name of the block specs file, I just don't know where the actual code for the block is.

Last edited by scratcher7_13 (2011-03-30 16:59:21)


♫ 90% of teens can't do math. If you are one of the 40% of teens who can, copy and paste this into your signature. ♫♪
http://dl.dropbox.com/u/6273449/BlockLibraryTitle.pnghttp://i.imgur.com/mr9Hf.gif

Offline

 

#5 2011-03-30 17:05:48

scratcher7_13
Scratcher
Registered: 2011-02-09
Posts: 1000+

Re: Experimental Viewer

I haven't found a decent decompiler yet.


♫ 90% of teens can't do math. If you are one of the 40% of teens who can, copy and paste this into your signature. ♫♪
http://dl.dropbox.com/u/6273449/BlockLibraryTitle.pnghttp://i.imgur.com/mr9Hf.gif

Offline

 

#6 2011-03-30 17:09:10

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: Experimental Viewer

scratcher7_13 wrote:

Yes. If you right click on the very edge of the screen in the experimental viewer, you can select 'Save Page as...' Then It will save not only the HTML file, but also a folder called (whatever you save the page as)_files. In this folder is a file called Scratch.swf. This can be decompiled with a flex decompiler. After you edit the action script, you can recompile it and replace Scratch.swf with your new Scratch.swf.

I know the name of the block specs file, I just don't know where the actual code for the block is.

I did that, I cannot find the SWF though.


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#7 2011-03-30 17:18:51

scratcher7_13
Scratcher
Registered: 2011-02-09
Posts: 1000+

Re: Experimental Viewer

Could you find the folder (name)_files?


♫ 90% of teens can't do math. If you are one of the 40% of teens who can, copy and paste this into your signature. ♫♪
http://dl.dropbox.com/u/6273449/BlockLibraryTitle.pnghttp://i.imgur.com/mr9Hf.gif

Offline

 

#8 2011-03-30 17:34:06

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: Experimental Viewer

scratcher7_13 wrote:

Could you find the folder (name)_files?

Yes.


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#9 2011-03-30 17:51:18

scratcher7_13
Scratcher
Registered: 2011-02-09
Posts: 1000+

Re: Experimental Viewer

Do you think you could post a screenshot?


♫ 90% of teens can't do math. If you are one of the 40% of teens who can, copy and paste this into your signature. ♫♪
http://dl.dropbox.com/u/6273449/BlockLibraryTitle.pnghttp://i.imgur.com/mr9Hf.gif

Offline

 

#10 2011-03-31 22:21:01

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: Experimental Viewer

The primitives package contains the actual code that the blocks execute. The Specs.as file in the top-level package should contain the blockspecs. I suspect scratch.PaletteBuilder might come in handy too...


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

#11 2011-04-01 04:36:41

what-the
Scratcher
Registered: 2009-10-04
Posts: 1000+

Re: Experimental Viewer

scratcher7_13 wrote:

Yes. If you right click on the very edge of the screen in the experimental viewer, you can select 'Save Page as...' Then It will save not only the HTML file, but also a folder called (whatever you save the page as)_files. In this folder is a file called Scratch.swf. This can be decompiled with a flex decompiler. After you edit the action script, you can recompile it and replace Scratch.swf with your new Scratch.swf.

I know the name of the block specs file, I just don't know where the actual code for the block is.

This is simular to how you get the beta. Hint. With firefox you can download any swf if you know where to look.


http://imageshack.us/m/64/9034/ddfss.pngMy site
Find someone post count. Click posts under username. Find number of pages. Times that by 40 for min and 60 for max and you have a rough estimate of post count.

Offline

 

#12 2011-04-01 16:05:51

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Experimental Viewer

I've been having the file for ages, but I can't decompile it. I have the entire CS4 suite and can't decompile a SWF file, amazing.

Offline

 

#13 2011-04-02 04:26:04

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: Experimental Viewer

I found a decent SWF decompiler, but the experimental viewer crashes it when it is 41% decompiled.


/* No comment */

Offline

 

#14 2011-04-02 04:30:08

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Experimental Viewer

TheSuccessor wrote:

I found a decent SWF decompiler, but the experimental viewer crashes it when it is 41% decompiled.

And what's this decompiler called, and where can you find it?

Offline

 

#15 2011-06-13 17:57:56

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

Re: Experimental Viewer

how do you get the experimental viewer?

Offline

 

#16 2011-06-13 18:31:33

dav09
Scratcher
Registered: 2009-03-25
Posts: 1000+

Re: Experimental Viewer

I tried debug it with cs4 flash but I keep getting this error:
"Waiting for Player to connect..."

Offline

 

Board footer