Skip to main content
Participant
November 4, 2012
Question

-1067: Implicit coercion of a value of type spark.components:TextInput to an unrelated type Number

  • November 4, 2012
  • 1 reply
  • 565 views

I am new to flex i was tring to get the converted value of celsius from  in a text input i wrote the folowing code :

override public function onRegister():void

                    {

                              eventMap.mapListener(view.btnCelsius,MouseEvent.CLICK,onClickCelsius);

                    }

 

                    public function onClickCelsius(vEvent:MouseEvent):void

                    {

                              view.txtCelsius =  String((view.txtFarhenheit-32)/1.8);

                    }

got the 1067 error please correct me.

This topic has been closed for replies.

1 reply

sinious
Legend
November 4, 2012

view.txtCelsius.text =  String((view.txtFarhenheit-32)/1.8);