You are on page 1of 33

1

__

App Inventor 2 - 2
( )

punch OK
App Inventor Designer (
)
4

(Media)
(Upload File)
5
6

Scrollable AlignHorizontal
AlignVertical Center
7

(Palette)
(User Interface) (Button)
(Viewer)
(Components) Button1
(Rename) image

8
9

(Properties)
(Image) (1.jpg ) Text

(Width) 270pixels (Height) 273pixe
ls
10
11

(Palette)
(User Interface) (Button)
(Viewer)
(Components) Button1
(Rename) aga
in (Properties) Te
xt
12
13

(Palette)
(Media) (Sound)
(Viewer)
(Properties) (Source) Me
dia .mp3 (waaa.mp3)
14
15

Blocks Built-in Variables


initialize global name
to "name " " i "
i ( i )
16
17

Math 0 "0 " " 1 "


i ( i ) 1(
)
18

Blocks Variables initializ


e global name to " name " " click "
Math 0
Click
0
19

Blocks Screen1 image w


hen image.Click do

20

Blocks Built-in Variables


set to " global click "
Math + Variables
get + " global click "
Math 0 + "0 " " 1
"
Click+1

21

Blocks Control if then


Math = if Variable
s get = "global cli
ck " Math 0 = "0 "
"3"
22

Blocks Variables set to


"global i " Math +
Variables get +
" global i " Math
0 + "0 " "1"
23

Blocks Variables set to


"global click " Math
0
Click=3
Click
24

Blocks Control if then


Math = if Variables
get = "global i "
Math 0 = "0 " "2"

25

Blocks Screen1 image s


et image.Image to Built-in Text "
" "2.jpg "
i=2 2.jpg
26


(control+C)
(control+V)
3.jpg
4.jpg 5.jpg

27

Blocks
Screen1 image
set image.Enabled
to Built-in
Logic false


( )




28

Blocks
Screen1 Sound1
call Sound1 .Pla
y

( )

29

Blocks Screen1 again w


hen again .Click do


30

Blocks Built-in Variables


set to " global i "
Math 0 "0 " " 1 "
31

Blocks Screen1 image s


et image.Image to Built-in Text "
" "1.jpg"

(1.jpg)
32

Blocks Screen1 image s


et image.Enabled to Built-in Logic
ture


33

You might also like