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.
What browser are you using... doesn't work on chrome.
Offline
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.
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)
Offline
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:
<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
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.
Offline
MathWizz wrote:
...Why doesn't mine work... 0.o It works perfectly for me and I have Chrome...
Dunno. What OS do you have?
Offline
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)
Offline
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?
Offline
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
Offline
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
I'm now intrigued by this Scratch_new.swf, anyone know how to do anything else with it (like play projects?)
Offline
Press CTRL-S.
Offline
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)
Offline