From Test-Scratch-Wiki
Exporting and importing are the processes of extracting a particular file and implementing it back into a program. In Scratch, it deals with the transferring of projects, sprites, costumes, backdrops, sounds, scripts, and lists.
Exporting
A variety of objects within the Scratch program can be exported within the Scratch. It can often require one to save the file to his or her computer.
Projects
To export a Scratch project, one must access File > Download to your computer. Downloading to the computer is the same as exporting the project. It will require the project to be saved to one's computer (or external hard drive) as a .sb2 file in Scratch 2.0 or a .sb file in Scratch 1.4.
Sprites
To export a sprite, one must right-click (or shift-click) on the sprite's icon in the sprites panel and select the option save to local file. As with the projects themselves, sprites will then be saved in .sb2 format.
Costumes
To export a particular costumes, right-click on the costume's icon in the costumes pane and select save to local file. If the costume is in vector, it will save as a .svg file, but bitmap costumes save in various formats.
Backdrops
To export a particular backdrop, right-click on its icon in the backdrops pane and select the save to local file, which allows one to save the backdrop to his or her computer.
Sounds
To export a particular sound, right-click on its icon in the sounds pane and select the option save to local file, which will save the sound in the same format it is in to one's computer.
Scripts
Scripts can only be exported using the backpack. To export a script, open the backpack and drag the script into it. The scripts will are then saved on the Scratch server.
Note: | one must be logged in to use the backpack. |
Lists
To export a list, right-click on the list monitor and select export, which allows the list to be saved as a .txt file.
Importing
Importing is the process of transferring external files into a program.
Projects
To import a project into the project editor, one must access File > Upload from your computer. Once a project is selected (Scratch 2.0 reads both .sb and .sb2 files), it will be loaded in Scratch.
Sprites
To import a sprite, click on the "import button" underneath the stage and select the sprite file (.sprite or .sprite2) or supported image file to import.
Costumes
To import a costume, in the paint editor select the "import button" and choose the desired costume file to upload.
Backdrops
To import a backdrop, in the paint editor select the "import button" and choose the desired backdrop file to upload.
Sounds
To import a sound, in the sound editor, click the "import button" and select the sound to import. Scratch can only read .MP3 and .WAV files.
Scripts
To import a script, drag the desired script within the backpack into the scripts area of the project editor.
Lists
To import a list, right-click on an existing list and select the import option. Then, select any .txt file to import into the list. Each line in the .txt file represents each item in the list.