1 Reply Latest reply on Jul 23, 2009 12:56 PM by Flex harUI

    Suspended: TypeError: Error #1006: value is not a function ?

    tcflex Level 1

      Hi,

       

      I am getting the below error when ever i am changing the style name dynamically.

       

       

      (child[l]

      as ComboBox).setStyle("styleName","attrbuteComboBoxWarning");

       

      and also I tried using

       

      (child[l] as ComboBox).styleName = "attrbuteComboBoxWarning";

       

      Both end up in giving the same error #1006.

       

       

       

      Main Thread (Suspended: TypeError: Error #1006: value is not a function.)
      AttributePanel/maintainState
      AttributePanel/attributesModifiedListener
      flash.events::EventDispatcher/dispatchEventFunction [no source]
      flash.events::EventDispatcher/dispatchEvent [no source]
      mx.core::UIComponent/dispatchEvent
      com.inq.flash.agent.control::ChatPanelController/fireAttributesModified
      com.inq.flash.agent.control.messagehandlers::TransferInfoHandler/parseData
      com.inq.flash.agent.control.messagehandlers::TransferInfoHandler/processMessage
      com.inq.flash.messagingframework::MessageRouter/processMessage
      com.inq.flash.messagingframework.connectionhandling::SocketConnectionHandler/dataHandler

      Thanks,

      tc.