Discuss Scratch

NathanzGames
Scratcher
9 posts

.SBX to .SWF / HTML5

Is it possible to convert a ScratchX file (.sbx) to flash or HTML5? (So you can display your game on a website) I know how to convert .sb2 to .swf, but does this work on ScratchX files?

when I start as a clone
forever

say [I will destroy the universe!]
end
THEFalconPunch
Scratcher
6 posts

.SBX to .SWF / HTML5

Sorry if I'm late, but I wanna answer this for other people as well.

I just tried your suggestion with JuneBeetle's .sb2 to .swf converter, and it did work… kinda.
It converted the file to .swf (flash) but the extensions I've tested (the text-to-speech and a browser cookie thing) didn't seem to work, maybe because I'm using a standalone version of flash.

Last edited by THEFalconPunch (Nov. 3, 2016 01:05:49)


when green flag clicked
ask [Was I helpful?] and wait
if <(answer) = [yes]> then
say [Great!]
say [:)]
else
say [What did I do wrong?]
say [:(]
end
Check out my projects here!
superben100
Scratcher
1000+ posts

.SBX to .SWF / HTML5

I don't believe it's possible with Junebeetle's converter. Here's why:

Junebeetle's converter does not recognize the file format “.SBX”. It was designed for “.SB2” files. His SB2 to SWF converter works by bundling a copy of Scratch itself, along with the SB2 file, which you supply it with, into an SWF file. The usual Scratch editor can't handle SBX files, because the Scratch Team didn't want it to. They wanted to keep Scratch X seperate from Scratch for various reasons. That's why they have a seperate website for Scratch X.

So after they created another website, the ST had to create a new editor specifically designed to load Scratch X extensions. And here is where the SB2 to SWF converter fails. As mentioned before, Junebeetle's converter simply bundles a copy Scratch (not Scratch X), with a copy of the SB2 which you supply it with. So when you try to bundle an SBX file with a copy of regular Scratch, what do you get? You get a defective SWF file that won't load.

But the SB2 to SWF converter sees it coming, and won't bundle Scratch with an SBX file. Instead a gives you a nice “The file you've entered is not an SB2 file. Please try another file.” error. (Or something along those lines.)

Now, it may be possible to create an SBX to SWF converter, but that would probably take a lot of coding.

Last edited by superben100 (Dec. 16, 2016 15:06:41)


Hello there!
I've been a Scratcher for nine years now, and I'm always happy to help!
I'm not around too often, but I check in here from time to time.
Let me know if you need anything!
|| Probably vibing to “Try” - Lawrence ||
pkexe
Scratcher
85 posts

.SBX to .SWF / HTML5

To make the blocks in HTML, you may need image files, but running them means you need graphics (canvas will do, and the element is explained below) and JavaScript to access the src attribute of the image (explained below) and do some other stuff on the canvas.

HTML Canvas:
<canvas width="400" height="400" id="c">
This sets the width and height attributes to 400 and can be accessible with JavaScript with the id attribute c.

HTML Images:
<img src="your source" >
This adds an image with the src attribute your source and the src attribute tells the browser the source

I need a better signature.
Some Windows stuff:
when [Ctrl+ScrollLock(2x) v] keys pressed :: hat events
if < <Registry key in HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Services\\i8042prt \(or kbdhid)\\Parameters equals 0x01 :: control> and <Current keyboard is PS/2 \(or USB for kbdhid) ::sensing>> then
immeadiately BSoD ::sensing
scan for errors :: control
reboot :: control
end


when [ Ctrl+Alt+Del v] keys pressed :: hat events
Show loading sign and message [ Preparing Security Options... ] :: control
Display security options {
Lock ::control
Switch User :: control
Signout :: control
Change a Password :: control
Task Manager :: control
} and display Cancel button :: control


when [ Win+R v] keys pressed :: hat :: events
Open Run dialog :: control
Inputs {
"cmd" Open Command Prompt at C:\\Windows\\System32\\cmd.exe :: control
"explorer" Open Windows/File Explorer at C:\\Windows\\explorer.exe :: control
"regedit" Open Registry Editor at C:\\Windows\\regedit.exe :: control
...
} :: control

~•~•~•~•~•~•~•~•~•~•~•~•~•~•~•

Dangerous bash commands that your Linux computer isn't fond of:
sudo rm -rf --no-preserve-root / :: control // It recursively deletes as much as it can in your Linux computer.

chmod -R 777 / :: control // See the many issues at https://serverfault.com/questions/364677/why-is-chmod-r-777-destructive.

dd if=/dev/random of=/dev/sda :: control // /dev/random contains random data that is written onto /dev/sda, aka your hard drive. Replacing /dev/random with /dev/zero completely zeroes out your drive.

:\()\{ :|:& };: :: control // This command is known as a fork bomb. It consumes all memory by creating duplicates of itself.

....

This is a visualization of a fork bomb:




Yup, definitely need to cut down my signature eightfold
BGMead
Scratcher
1000+ posts

.SBX to .SWF / HTML5

NathanzGames wrote:

Is it possible to convert a ScratchX file (.sbx) to flash or HTML5? (So you can display your game on a website) I know how to convert .sb2 to .swf, but does this work on ScratchX files?
If you would like to add it to a website, click the “Embed” button under your project. Add the HTML code to your website.

Heyo! I am Jade (she/her) and I used to be very active on the scratch discussion forums back in 2017. I've since left scratch to pursue an interest in game development, graphics and engine programming, and college.
xTimeBomb
Scratcher
7 posts

.SBX to .SWF / HTML5

BGMead wrote:

NathanzGames wrote:

Is it possible to convert a ScratchX file (.sbx) to flash or HTML5? (So you can display your game on a website) I know how to convert .sb2 to .swf, but does this work on ScratchX files?
If you would like to add it to a website, click the “Embed” button under your project. Add the HTML code to your website.

Do you know what .sbx files are?
superben100
Scratcher
1000+ posts

.SBX to .SWF / HTML5

xTimeBomb wrote:

BGMead wrote:

NathanzGames wrote:

Is it possible to convert a ScratchX file (.sbx) to flash or HTML5? (So you can display your game on a website) I know how to convert .sb2 to .swf, but does this work on ScratchX files?
If you would like to add it to a website, click the “Embed” button under your project. Add the HTML code to your website.

Do you know what .sbx files are?
1. Please do not necropost. This topic has been dead for quite a while.

2. SBX files are files that are created by ScratchX.

Hello there!
I've been a Scratcher for nine years now, and I'm always happy to help!
I'm not around too often, but I check in here from time to time.
Let me know if you need anything!
|| Probably vibing to “Try” - Lawrence ||
NutageGaita
Scratcher
16 posts

.SBX to .SWF / HTML5

necroposting! yay!
however there is no “see project page” button in scratchX, because it is based off scratch 2 offline editor

Some of my cool things (coming soon maybe):
Scrat Run Demo 2A
Grid Brick
Ants A Platformer
Click on the links to play!
superben100
Scratcher
1000+ posts

.SBX to .SWF / HTML5

NutageGaita wrote:

necroposting! yay!
however there is no “see project page” button in scratchX, because it is based off scratch 2 offline editor
“yay!”? I think not.

Hello there!
I've been a Scratcher for nine years now, and I'm always happy to help!
I'm not around too often, but I check in here from time to time.
Let me know if you need anything!
|| Probably vibing to “Try” - Lawrence ||
witherman17
Scratcher
46 posts

.SBX to .SWF / HTML5

BGMead wrote:

NathanzGames wrote:

Is it possible to convert a ScratchX file (.sbx) to flash or HTML5? (So you can display your game on a website) I know how to convert .sb2 to .swf, but does this work on ScratchX files?
If you would like to add it to a website, click the “Embed” button under your project. Add the HTML code to your website.
Dude. Did you read the topic? It SAYS ScratchX, NOT normal Scratch.

My Website
MEEP os
OOFLAND: a platformer game
The kaj chronicles: an animated movie
when green flag clicked
think [Somebody is reading my code...] for (2) secs
babmv
Scratcher
100+ posts

.SBX to .SWF / HTML5

.

Fun Fact: My username is BABMV because those letters are the initials of a project I was going to make in Scratch
Boomer001
Scratcher
1000+ posts

.SBX to .SWF / HTML5

it is actually possible to convert .sbx to html with sheeptester.github.io.

:::::::::   ::::::::   ::::::::  ::::    ::::  :::::::::: :::::::::   :::::::   :::::::    :::   
:+:    :+: :+:    :+: :+:    :+: +:+:+: :+:+:+ :+:        :+:    :+: :+:   :+: :+:   :+: :+:+:   
+:+    +:+ +:+    +:+ +:+    +:+ +:+ +:+:+ +:+ +:+        +:+    +:+ +:+  :+:+ +:+  :+:+   +:+   
+#++:++#+  +#+    +:+ +#+    +:+ +#+  +:+  +#+ +#++:++#   +#++:++#:  +#+ + +:+ +#+ + +:+   +#+   
+#+    +#+ +#+    +#+ +#+    +#+ +#+       +#+ +#+        +#+    +#+ +#+#  +#+ +#+#  +#+   +#+   
#+#    #+# #+#    #+# #+#    #+# #+#       #+# #+#        #+#    #+# #+#   #+# #+#   #+#   #+#   
#########   ########   ########  ###       ### ########## ###    ###  #######   #######  ####### 
CHECK OUT MY FORUM STATS



















24foutr_aj
Scratcher
13 posts

.SBX to .SWF / HTML5

emoji! It could work if you could convert .sbx to .sb2 in the first place!

Hello this is @24foutr_aj what you up to

when green flag clicked
decode [shell.yob=((create] [5(func)] as java.script function and wait

When <(java.script function) = [create shell.yob]> script run
forever
end
imagine
program
remix

scroll x (5)
set x to (lol!)
<[#customized blocks] = (FUN!!)>

Lol
MikeDEV
Scratcher
1000+ posts

.SBX to .SWF / HTML5

24foutr_aj wrote:

emoji! It could work if you could convert .sbx to .sb2 in the first place!
Please don't necropost. The last time this post was replied to was back on December 26, 2019.

Judging by the post:

Boomer001 wrote:

it is actually possible to convert .sbx to html with sheeptester.github.io.
It should be possible, as long as you don't use any special blocks or blocks from experimental extensions.

I believe this has been already answered. I will request this thread to be closed as it is already answered.

I have left Scratch! Goodbye everyone, I'll remember you all in therapy.
If you want to ever get in contact with me again, please visit my Github instead.
Also, if you need to, you can contact me via Meower. You'll know where to look.

Powered by DjangoBB