Hey everyone,
I have to confess something. "I began to cultivate myself after FLASH-DB". Thanks everyone but i couldn't complete my target :) I have to learn just a little bit thing. Yes i began to boring myself like you :)
I've INSERTED to FLASH MX,
"startValue" text as an input.
labels(meter, cm, mm and km) and then data(1, 0.01, 0.001, 1000) into "Combo1" used PROPERTIES MENU.
labels(meter, cm, mm and km) and then data(1, 0.01, 0.001, 1000) into "Combo2".
"resultValue" text as a dynamic.
And my script was,
calculate.onPress=function(){
if(combo1.getSelectedItem().label==combo2.getSelectedItem().label){
resultValue.text="Both are equal";
return
}
qty=Number(startValue)
if(startValue.text==""||isNan(qty)){
resultValue.text="Enter a number"
return
}
resultValue.text=1/combo1.getSelectedItem().data*qty*combo2.getSelectedItem().data
}
problem : "both are equal" and "enter a number" warnings are working good but this flash page isn't calculating anything. HOW CAN I BE ACCEPTED THIS DATA TO CALCULATE ? I WANT to USE THIS DATA to release you.No, I am just kidding.
GOOD WEEKENDS!