0 Replies Latest reply on Jun 12, 2007 3:22 PM by TigerLittle

    Error #1034: Type Coercion failed

    TigerLittle Level 1
      Today, I downloaded source code (all related codes also) from http://tools.assembla.com/flexsdk/browser/mx/controls/scrollClasses/ScrollBar.as?rev=2
      and do it as myself compenent in order to change ScrollBar THICKNESS value. And I initial it as

      var myhbar:ScrollBar = new my.components.myscrollbar.ScrollBar();
      this.horizontalScrollBar = mx.controls.HScrollBar(myhbar);

      when i run it, it gives me following error.
      Error #1034: Type Coercion failed: cannot convert com.nov.components.myscrollbar::MyScrollBar@4cf2cf1 to mx.controls.HScrollBar

      Anyone knows how to use it correctly? Thanks.