I decompiled the flash player, and I found these blocks in the specs:
Block name Command Stage only: "scroll right %n" "scrollRight" "scroll up %n" "scrollUp" "align scene %m.scrollAlign" "scrollAlign" "switch to scene %m.scene" "switchScene" "next scene" "nextScene" "hide all sprites" "hideAll" "turn video %m.videoState" "setVideoState" "set video transparency to %n%" "setVideoTransparency" All: "when scene %m.scene starts" "whenSceneStarts" "start scene %m.scene" "startScene" "start scene %m.scene and wait" "startSceneAndWait" "scene name" "sceneName" (reporter) "scene #" "backgroundIndex" (reporter) "stop %m.stop" "stopScripts" "create clone of %m.spriteOnly" "createCloneOf" "x scroll" "xScroll" (reporter) "y scroll" "yScroll" (reporter) "user id" "getUserId" (reporter) "days since 2000" "timestamp" (reporter) "current %m.timeAndDate" "timeAndDate" (reporter) "video %m.videoMotionType on %m.stageOrThis" "senseVideoMotion" Sprite only: "delete this clone" "deleteClone" And then there's a lot of boring MIDI synth things... Also, these were uncategorized: "noop" "COUNT" (reporter) "counter" "COUNT" (reporter) "clear counter" "CLR_COUNT" "incr counter" "INCR_COUNT" "for each %m.varName in %s" "doForLoop" (loop) "while %b" "doWhile" (loop) "all at once" "warpSpeed" (loop) Finally, some values defined outside the array of specs: CALL = "call" PROCEDURE_DEF = "procDef" GET_PARAM = "getParam"
Most of these are in the beta editor. It needs more testing, but I already tested the uncategorized ones here. The script in the project is:
when gf clicked say (join [User ID: ] (#getUserId)) for (2) secs say (join [Days since 2000: ] (#timestamp)) for (2) secs for each [i v] in (10) #doForLoop say (i) for (0.2) secs end of C-block call procedure #call procedure #test end of C-block
define #procDef procedure #test end of C-block say [Procedure was successful.] for (2) secsThe procedure (#test) block is an argument stating which procedure is called/defined. In theory it could be any normal block. This should also apply to #getParam, but I haven't tested it yet.
Offline
They're not hidden blocks. They are the blocks new in 2.0.
Offline
LS97 wrote:
They're not hidden blocks. They are the blocks new in 2.0.
You are correct, but these are not available in the block palette:
"noop" "COUNT" (reporter) "counter" "COUNT" (reporter) "clear counter" "CLR_COUNT" "incr counter" "INCR_COUNT" "for each %m.varName in %s" "doForLoop" (loop) "while %b" "doWhile" (loop) "all at once" "warpSpeed" (loop)
Offline