EventTutorial
Lesson 2. Editing FKiSS Events
-
We are now going to edit the behavior of the simple button events we created in
lesson 1. If you are continuing from lesson 1 you can skip to step
3. Otherwise, ensure that UltraKiss is showing the main logo
screen. Close any existing data set.
-
Use File-Open to load the configuration file
CNF1.cnf from the Tutorial/FKiSS directory or the directory you used
in lesson 1. This will load the button set that you created in lesson 1.
-
Our buttons will switch the set to new pages. Use Edit-Add
Page to create new page 1. UltraKiss will automatically switch
to view this empty page. Next, use Edit-Import Image to
New Object and select rei.jpg from the
Tutorial/FKiSS directory. This JPG image will be automatically converted to a cherry KiSS CEL. Position the image in the center of the screen.
-
Repeat step 3 to create new page 2. This time, import ruri.jpg
as the image file.
-
Next, use View-Page Set 0 or use the toolbar
button to display page 0 with the buttons. Right-click on the first
button to display the context menu. Choose either Image
Context or Object Context, then
Edit Events. This will activate the FKiSS Editor tool.
You could also have used Tools-FKiSS Editor to do
this.
-
Click on the 'press(#1)' event to highlight
it. Next, use File-Edit Event to open the
Text Editor for the currently selected event. You will see the event code
from lesson 1.
-
Overtype or replace the ;@notify action
statement with ;@ changeset(1) statement.
This statement causes a switch to page set 1. If your button is object 1,
your new event code should look as shown below:
;@press(#1)
;@ changeset(1)
-
Exit the Text Editor and apply your changes. If you wish you can exit the
FKiSS Editor and test your changes. Press the first button on page 0 and
your set should automatically switch to page 1.
-
Repeat steps 5 through 9 to edit the event code for the second button.
This time, replace the ;@notify action
statement with ;@ changeset(2) statement
to cause a switch to page set 2. For button 2, your new event code
should look as shown below:
;@catch("button2.cel")
;@ changeset(2)
-
Exit the Text Editor and apply your changes. If you wish you can exit the
FKiSS Editor and test your changes. Press the second button on page 0 and
your set should automatically switch to page 2.
-
If you like, you can also define new press events on each of the images to
easily return to page 0. This is left as an exercise for you.
-
Use File-Save As to save your work. Save the
new KiSS set to the Tutorial/FKiSS directory or a directory of your
choice. Change the name to CNF2.cnf.
You can overwrite any existing element of the same name.
Next Document: Event Tutorial Lesson 3
Prior Document: Event Tutorial Lesson 1
Copyright (c) 2002-2005 WSM Information Systems Inc.