bobbybee wrote:
ASsetLoginUser works on my version (unless I just set it up different). Do you have any debug info?
Not really, I'm running it in chrome on the alpha.scratch.mit.edu page. The JS was added in with the dev tools.
EDit: D'oh! Forgot the document.plugin. in front of the login method. Now something happens...
A sign in box comes up (The server alpha.scratch.mit.edu:80 requires a username and password. The server says: Restricted.). Must be for ST devs only, because entering my uname and pass gets me 401 unauthorized errors.
edit 2: I have my name in the corner now :3
Last edited by scratchisthebest (2012-06-19 14:03:23)
Offline
elimantor wrote:
-.- i need help i dont know how to run a server can someone give me instructions on how they did it!?
you don't need a server just go the swf page and type
document.plugin.ASsetEditMode(true);
inside dev console
Offline
ASsetLoginUser almost allows cloud variables!
Except for that it says that "You can't edit other people's cloud data."
elimantor wrote:
how do u get into the dev console is it developer tools? if so i tried that and it failed
In Chromnium (and therefore probably chrome), it's View > Developer > Javascript Console.
Offline
zippynk wrote:
Also, if you get this,
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.
Thanks, that should fix it.
Offline
zippynk wrote:
ASsetLoginUser almost allows cloud variables!
Oh, I can get the fix for that. You just need to set the project as a new project, using the ASsetNewProject method.
ASsetNewProject(projectId, 'Project Title');
Offline
elimantor wrote:
how do i fix the blank screen?
Go to http://alpha.scratch.mit.edu/scratchr2/ … ch_new.swf and open the Developers Tools and then go to Console and type "document.plugin.ASsetEditMode(true);" and press enter.
https://dl.dropbox.com/u/37687009/scratch2.0.png
Offline
Anyone realised the zoom feature is gone?
Edit: Use the magnification glasses on the top grey bar and click on the scripting area to zoom in or out.
Last edited by jontmy00 (2012-06-21 03:51:14)
Offline
MathWizz wrote:
Pecola1 wrote:
MathWizz wrote:
I have the Scratch 2.0 alpha editor working offline. I might host it IF the Scratch team says OK. http://img339.imageshack.us/img339/8843/scratch20.png
I can tell you now they'll say no. They took it off for a reason, they released it for 3 days only because they wanted ppl to see how it was going.
Lol. I know.
EDIT: Just curious... Did anyone else download the Scratch_new.swf?
me but I need the html to get it working
Offline
GeonoTRON2000 wrote:
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>
Offline
elimantor wrote:
if only someone copied a javascript from the scratch 2.0 site we could have made a unofficial site where we could have uploaded stuff like mod-share
All of the necessary files have been downloaded and it would be possible, but the Scratch team don't want Scratch 2.0 to be mass distributed yet and we're respecting their wishes.
Offline
veggieman001 wrote:
elimantor wrote:
if only someone copied a javascript from the scratch 2.0 site we could have made a unofficial site where we could have uploaded stuff like mod-share
All of the necessary files have been downloaded and it would be possible, but the Scratch team don't want Scratch 2.0 to be mass distributed yet and we're respecting their wishes.
AWWWW CAN WE TRY IT we gotta they havent given us a finish date we gotta try it please some-one agree with me!
Offline
elimantor wrote:
veggieman001 wrote:
elimantor wrote:
if only someone copied a javascript from the scratch 2.0 site we could have made a unofficial site where we could have uploaded stuff like mod-share
All of the necessary files have been downloaded and it would be possible, but the Scratch team don't want Scratch 2.0 to be mass distributed yet and we're respecting their wishes.
AWWWW CAN WE TRY IT we gotta they havent given us a finish date we gotta try it please some-one agree with me!
They've said not to :L
Offline
I found an easier way than dev console:
1. Drag this link into your bookmarks: Scratch 2.0
2. Highlight this code and drag it into your bookmarks:
javascript:document.body.childNodes[0].ASsetEditMode(true);
3. Open the first bookmark, wait until it loads, and then open the second bookmark.
Tested in Google Chrome 19.0.1084.56 on Mac OS X 10.7.4.
Last edited by djdolphin (2012-06-22 08:30:39)
Offline