flash q - button comp
flash q - button comp
- Started
- Last post
- 4 Responses
- kinetic
does anyone know how to keep a button component selected after it is pushed?
i can do myButton.selected = true...but i can only declare that before hand to have it show as selected.
when i drop it in the onPress like this
onPress = function() {
myButton.selected = true;
}it doesn't work.
any ideas?
- JazX0
why not do it linearly.
- kinetic0
how do you mean?
via timeline?
its all gonna b in as2 classes. buttons will be generated on the fly via createClassObject.
- lucyGeneric0
I no use components but yr code had scope error in it
onPress = function() {
myButton.selected = true;
}*should be*
onPress = function() {
this.selected = true;
}
- kinetic0
either or doesn't work.
seems you can only set that at runtime. if you try and set it later (like on an event like press) .. it doesnt work at all.