I'm trying to make an app that count how many times you've clicked the button in blackberry 10
so i'm trying to int a value that will increase by 1 when you click the button
import bb.cascades 1.2
Page {
Container {
ImageButton {
defaultImageSource: "asset:///item_XS_6405840_3762396.jpg"
onClicked: {
count.setText(count + 1)
}
onTouch: {
count.setText(count + 1)
}
}
Label {
text: "you've clicked:"
}
Label {
id: count
text: 0
}
Button {
id: reset
text: "reset"
onClicked: {
count = 0;
}
}
}
}
I only have knowledge in java. thanks for helping