
If you like to share a piece without animation and interactivity you can use a .TEA file, put it in a web-server etc. like we said in previous lessons.
But, imagine that YOU have created the piece WallDoor12x7x1, having a not very easy(?) programming for interactivity (the door opens and closes), and you would like to send it to one of your croqueteer-friends to use it in his Private area.
There are, of course, the files: wallDoor12x7x1.ase and wallDoor12x7x1.jpg, door1.jpg and Pbutton.jpg that you need to send to him and he needs to "install" them in the right folders. But there are, also, all the work for the creation of the Class WallDoor12x7x1.
You can send to your friend all the instructions for this creation (like we are doing at this course). But, if your friend is not insterested in to learn Croquet programing, there are an easier way for him to use the piece.
Open your "Package Browser". If you did all the exercices of our course (and I hope you did) you can find the Class: WallDoor12x7x1.
Selecting and right-clicking the Class name, opens a window where you need to click: fileOut.
Opening the folder C:\Croquet - or equivalent at your system - you will see a new file: WallDoor12x7x1.st
Now, back to the "Package Browser", reopen that window you have used (look the first figure of this lesson) and remove the Class. You are now like your friend, if he received the .ST file from you, downloading it at the C:\Croquet folder.
Using the "green window" open the tool "File List" and find the WallDoor12x7x1.st file.
Selecting it and clicking "filein", the Class is loaded, and you can see it in the "Package Browser" and, of course, use it.
Squeak-Croquet has many other ways to share Classes - this can be a problem for a newbie like you. Some guys, by example, like to use "Change-Sets" to do it.
Let's go to do the same exercice using a Change-Set.
Click in the Croquet desktop opening the window World. Click open and simple change sorter. You can find the WallDoor12x7x1 in the "Sorter":
Right-click and, in the new window click: fileOut
Opening the folder C:\Croquet - or equivalent at your system - you will see a new file: WallDoor12x7x1.AFDJ.1.cs. (Your file will have your "letters", not AFDJ.)
This method to share Classes is more sophisticated than the first. If you, in the future, create a new "Change-set" of the same Class - if there are some modifications on it - there will be a file: WallDoor12x7x1.AFDJ.2.cs. We can say that change-sets are "versioned"...
To load this Class to his "Croquet image" (to be seeing in the "Package Browser") your friend needs to receive this file and to use the "File List".
There are some other tools you can use to share "Squeak packages" like : Monticello (and its .MCZ files) and the SARBuilderInstaller (and .SAR files) but to talk about these subjects is out of the scope of this basic course. Sorry.
PREVIOUS LESSON NEXT LESSON T. CONTENTS HOMEPAGE
