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

#26 2012-05-22 22:40:52

GeonoTRON2000
Scratcher
Registered: 2009-12-24
Posts: 1000+

Re: Scratch 2.0 Alpha

MathWizz wrote:

Ahhhhhh... I have mine on a local server. I'm guessing you are running yours directly from your hard drive. That screws JavaScript being able to access the editor.  hmm

What browser are you using... doesn't work on chrome.


http://i.imgur.com/BAEgGDL.png

Offline

 

#27 2012-05-22 22:52:54

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Scratch 2.0 Alpha

MathWizz wrote:

Ahhhhhh... I have mine on a local server. I'm guessing you are running yours directly from your hard drive. That screws JavaScript being able to access the editor.  hmm

I did try it on a web server that isn't my own, but I'll try it on mine too.

Edit: Not working...

Last edited by veggieman001 (2012-05-22 22:54:36)


Posts: 20000 - Show all posts

Offline

 

#28 2012-05-22 22:53:26

GeonoTRON2000
Scratcher
Registered: 2009-12-24
Posts: 1000+

Re: Scratch 2.0 Alpha

MathWizz wrote:

Fione...

Code:

<html>
  <body>
    <object id="fa" width="100%" height="100%">
      <param name="movie" value="Scratch_new.swf" />
      <param name="allowScriptAccess" value="sameDomain" />
    </object>
    <script type="text/javascript">
      setTimeout(function () {
        document.getElementById('fa').ASsetEditMode(true)
      }, 1000);
    </script>
  </body>
</html>

I found the problem!  You need to access the embed element, not the object element:

Code:

<body onload="setTimeout(function() {document.getElementById('editor').ASsetEditMode(true);}, 1000);">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
        id="editorObj" width="100%" height="100%"
        codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">

        <param name="movie" value="swf/editor.swf" />

        <param name="quality" value="high" />

        <param name="bgcolor" value="#ffffff" />

        <param name="allowScriptAccess" value="sameDomain" />

        <embed id="editor" src="swf/editor.swf" quality="high" bgcolor="#ffffff"

            width="100%" height="100%" name="editor" align="middle"

            play="true"

            loop="false"

            quality="high"

            allowScriptAccess="sameDomain"

            type="application/x-shockwave-flash"

            pluginspage="http://www.adobe.com/go/getflashplayer">

        </embed>

</object>

</body>

http://i.imgur.com/BAEgGDL.png

Offline

 

#29 2012-05-22 22:56:15

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Scratch 2.0 Alpha

GeonoTRON2000 wrote:

MathWizz wrote:

Fione...

Code:

<html>
  <body>
    <object id="fa" width="100%" height="100%">
      <param name="movie" value="Scratch_new.swf" />
      <param name="allowScriptAccess" value="sameDomain" />
    </object>
    <script type="text/javascript">
      setTimeout(function () {
        document.getElementById('fa').ASsetEditMode(true)
      }, 1000);
    </script>
  </body>
</html>

I found the problem!  You need to access the embed element, not the object element:

Code:

<body onload="setTimeout(function() {document.getElementById('editor').ASsetEditMode(true);}, 1000);">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
        id="editorObj" width="100%" height="100%"
        codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">

        <param name="movie" value="swf/editor.swf" />

        <param name="quality" value="high" />

        <param name="bgcolor" value="#ffffff" />

        <param name="allowScriptAccess" value="sameDomain" />

        <embed id="editor" src="swf/editor.swf" quality="high" bgcolor="#ffffff"

            width="100%" height="100%" name="editor" align="middle"

            play="true"

            loop="false"

            quality="high"

            allowScriptAccess="sameDomain"

            type="application/x-shockwave-flash"

            pluginspage="http://www.adobe.com/go/getflashplayer">

        </embed>

</object>

</body>

Ah, that works. Thanks.  smile


Posts: 20000 - Show all posts

Offline

 

#30 2012-05-22 23:06:42

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Scratch 2.0 Alpha

...Why doesn't mine work... 0.o It works perfectly for me and I have Chrome...


http://block.site90.net/scratch.mit/text.php?size=30&amp;text=%20A%20signature!&amp;color=333333

Offline

 

#31 2012-05-22 23:08:16

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Scratch 2.0 Alpha

MathWizz wrote:

...Why doesn't mine work... 0.o It works perfectly for me and I have Chrome...

Dunno. What OS do you have?


Posts: 20000 - Show all posts

Offline

 

#32 2012-05-22 23:26:37

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Scratch 2.0 Alpha

Hehehe I've decompiled the SWF too L:


Posts: 20000 - Show all posts

Offline

 

#33 2012-05-23 00:32:22

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Scratch 2.0 Alpha

veggieman001 wrote:

Hehehe I've decompiled the SWF too L:

Haha.  tongue
I have Windows 7 BTW...


http://block.site90.net/scratch.mit/text.php?size=30&amp;text=%20A%20signature!&amp;color=333333

Offline

 

#34 2012-05-23 02:11:16

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: Scratch 2.0 Alpha

I'm gonna see if the .SWF is still in chrome://cache lol.

EDIT: Found it!

Last edited by nathanprocks (2012-05-23 02:24:15)


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&amp;display=small

Offline

 

#35 2012-05-23 02:39:14

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: Scratch 2.0 Alpha

GeonoTRON2000 wrote:

MathWizz wrote:

Fione...

Code:

<html>
  <body>
    <object id="fa" width="100%" height="100%">
      <param name="movie" value="Scratch_new.swf" />
      <param name="allowScriptAccess" value="sameDomain" />
    </object>
    <script type="text/javascript">
      setTimeout(function () {
        document.getElementById('fa').ASsetEditMode(true)
      }, 1000);
    </script>
  </body>
</html>

I found the problem!  You need to access the embed element, not the object element:

Code:

<body onload="setTimeout(function() {document.getElementById('editor').ASsetEditMode(true);}, 1000);">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
        id="editorObj" width="100%" height="100%"
        codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">

        <param name="movie" value="swf/editor.swf" />

        <param name="quality" value="high" />

        <param name="bgcolor" value="#ffffff" />

        <param name="allowScriptAccess" value="sameDomain" />

        <embed id="editor" src="swf/editor.swf" quality="high" bgcolor="#ffffff"

            width="100%" height="100%" name="editor" align="middle"

            play="true"

            loop="false"

            quality="high"

            allowScriptAccess="sameDomain"

            type="application/x-shockwave-flash"

            pluginspage="http://www.adobe.com/go/getflashplayer">

        </embed>

</object>

</body>

The first one give me a messed up paint editor and the second one gives me nothing. Does it have to be run on a server?


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&amp;display=small

Offline

 

#36 2012-05-23 02:47:16

slinger
Scratcher
Registered: 2011-06-21
Posts: 1000+

Re: Scratch 2.0 Alpha

Yeah, I have it too  tongue


http://s0.bcbits.com/img/buttons/bandcamp_130x27_blue.png

Offline

 

#37 2012-05-23 09:26:21

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Scratch 2.0 Alpha

nathanprocks wrote:

GeonoTRON2000 wrote:

MathWizz wrote:

Fione...

Code:

<html>
  <body>
    <object id="fa" width="100%" height="100%">
      <param name="movie" value="Scratch_new.swf" />
      <param name="allowScriptAccess" value="sameDomain" />
    </object>
    <script type="text/javascript">
      setTimeout(function () {
        document.getElementById('fa').ASsetEditMode(true)
      }, 1000);
    </script>
  </body>
</html>

I found the problem!  You need to access the embed element, not the object element:

Code:

<body onload="setTimeout(function() {document.getElementById('editor').ASsetEditMode(true);}, 1000);">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
        id="editorObj" width="100%" height="100%"
        codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">

        <param name="movie" value="swf/editor.swf" />

        <param name="quality" value="high" />

        <param name="bgcolor" value="#ffffff" />

        <param name="allowScriptAccess" value="sameDomain" />

        <embed id="editor" src="swf/editor.swf" quality="high" bgcolor="#ffffff"

            width="100%" height="100%" name="editor" align="middle"

            play="true"

            loop="false"

            quality="high"

            allowScriptAccess="sameDomain"

            type="application/x-shockwave-flash"

            pluginspage="http://www.adobe.com/go/getflashplayer">

        </embed>

</object>

</body>

The first one give me a messed up paint editor and the second one gives me nothing. Does it have to be run on a server?

Yep


Posts: 20000 - Show all posts

Offline

 

#38 2012-05-23 10:30:49

GeonoTRON2000
Scratcher
Registered: 2009-12-24
Posts: 1000+

Re: Scratch 2.0 Alpha

I got it to work  smile
http://img402.imageshack.us/img402/8843/scratch20.png


http://i.imgur.com/BAEgGDL.png

Offline

 

#39 2012-05-23 10:48:31

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Scratch 2.0 Alpha

http://oi49.tinypic.com/1zbsz69.png
Me too


Posts: 20000 - Show all posts

Offline

 

#40 2012-05-23 11:34:28

s_federici
Scratcher
Registered: 2007-12-18
Posts: 500+

Re: Scratch 2.0 Alpha

Excellent! It really works!

At start I was a bit upset today as, after having spent weeks in looking for a way to make the Flash Player work locally, I had abondoned the idea of making the new prototype work locally too. So I didn't try to save the swf.

Instead you guys immediately found the way to make it work. So I went straight to my browser cache and... ta daaa!!! I found it!

I had just to move it to my local server (EasyPHP, free, very easy to set up) and right now I'm able to load the arkanoid clone project I had created with the protoype!

Great job!!!

Last edited by s_federici (2012-05-23 11:53:31)

Offline

 

#41 2012-05-23 13:16:22

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Scratch 2.0 Alpha

s_federici wrote:

Instead you guys immediately found the way to make it work. So I went straight to my browser cache and... ta daaa!!! I found it!

Haha.  smile


http://block.site90.net/scratch.mit/text.php?size=30&amp;text=%20A%20signature!&amp;color=333333

Offline

 

#42 2012-05-23 13:39:37

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: Scratch 2.0 Alpha

hmm
if i host it on dropbox will it work?


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#43 2012-05-23 13:46:49

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Scratch 2.0 Alpha

muppetds wrote:

hmm
if i host it on dropbox will it work?

I think so...


http://block.site90.net/scratch.mit/text.php?size=30&amp;text=%20A%20signature!&amp;color=333333

Offline

 

#44 2012-05-23 15:45:19

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: Scratch 2.0 Alpha

MathWizz wrote:

muppetds wrote:

hmm
if i host it on dropbox will it work?

I think so...

It still won't work with both htmls on dropbox


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#45 2012-05-23 15:47:36

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Scratch 2.0 Alpha

muppetds wrote:

MathWizz wrote:

muppetds wrote:

hmm
if i host it on dropbox will it work?

I think so...

It still won't work with both htmls on dropbox

Do you have Scratch_new.swf?


http://block.site90.net/scratch.mit/text.php?size=30&amp;text=%20A%20signature!&amp;color=333333

Offline

 

#46 2012-05-23 16:24:36

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: Scratch 2.0 Alpha

yea it just shows a blank screen


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#47 2012-05-23 18:20:38

GeonoTRON2000
Scratcher
Registered: 2009-12-24
Posts: 1000+

Re: Scratch 2.0 Alpha

I'm now intrigued by this Scratch_new.swf, anyone know how to do anything else with it (like play projects?)


http://i.imgur.com/BAEgGDL.png

Offline

 

#48 2012-05-23 19:26:16

funelephant
Scratcher
Registered: 2010-07-02
Posts: 1000+

Re: Scratch 2.0 Alpha

Press CTRL-S.  big_smile


nicki begs to differ
http://24.media.tumblr.com/ab0e6e8fd347c5e39c2821bcab9d16e6/tumblr_mgu35sui1L1rfb7aqo2_500.gif

Offline

 

#49 2012-05-23 19:44:52

zippynk
Scratcher
Registered: 2011-07-23
Posts: 500+

Re: Scratch 2.0 Alpha

GeonoTRON2000 wrote:

I'm now intrigued by this Scratch_new.swf, anyone know how to do anything else with it (like play projects?)

There's something about it on the wiki.

Edit: Scratch_new.swf is still online, just the main directory isn't!

Last edited by zippynk (2012-05-23 19:51:11)


https://dl.dropbox.com/u/60598636/trifocal_interlude_soundcloud_button.png

Offline

 

#50 2012-05-23 20:02:22

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Scratch 2.0 Alpha

Ooh now I got the file I wanted :J


Posts: 20000 - Show all posts

Offline

 

Board footer