Welcome, Guest
  • Author Topic: Boring and old subject about data confirmation!  (Read 1193 times)

    anil

    • Server what's that
    • *
    • Posts: 19
      • View Profile
      • Email
    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!


    anil

    • Server what's that
    • *
    • Posts: 19
      • View Profile
      • Email
    Re:Boring and old subject about data confirmation!
    « Reply #1 on: 09/12/04, 01:43 »
    SUMMARY

    1-comboboxes'proporties are same
       -editable(false), label(m, cm, mm, km),
       -data (1,0.01,0.001,1000), RowCount(4),              
       -changeHandler(calculate)

    2-This convertor didn't work and i've taken same warning "Enter a number". I could not take data from comboboxes.WHERE IS MY FAULT? PLS HELP!!!


    resultValue.text=combo1.getSelectedItem().data*combo2.getSelectedItem().data

    Ronald Wernecke

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 6203
      • View Profile
      • Professional Support
      • Email
    Re:Boring and old subject about data confirmation!
    « Reply #2 on: 09/12/04, 04:38 »
    Hi Anil,
    how did you fill the combo?
    Make sure the data values are numeric ;)
    happy flashing
    8)
    Ronald

    anil

    • Server what's that
    • *
    • Posts: 19
      • View Profile
      • Email
    Re:Boring and old subject about data confirmation!
    « Reply #3 on: 09/12/04, 08:07 »
    hey Ronald !
    you're GREAT about always wanna  help,

    i inserted data used to data field in properties menu.
    yes i think that these are numeric 1,0.01,0.001,1000
    but i didn't use data for any calculate...

    i informed before message!i inserted these values used by PROPorties menu...
    -editable(false), label(m, cm, mm, km),
    -data (1,0.01,0.001,1000), RowCount(4),              
    -changeHandler(calculate)





    anil

    • Server what's that
    • *
    • Posts: 19
      • View Profile
      • Email
    Re:Boring and old subject about data confirmation!
    « Reply #4 on: 09/17/04, 23:03 »
    hey everybody!

    yes, i 've solved my question...
    Thanks all, especially Robert and Jorge...
    this site was so useful for me...


    cya...
    anil...