4 Replies Latest reply on Mar 25, 2011 2:35 PM by paulhart83

    Implicit coercion of a value of type com.packageName.controls.coverflow:CoverFlowController to an un

    paulhart83 Level 1

      I am really starting to get annoyed by this compiler... This error:

       

      Implicit coercion of a value of type com.packageName.controls.coverflow:CoverFlowController to an unrelated type com.packageName.controls.coverflow:CoverFlowController

       

      Makes no since, and it goes away based on how I structor an completly unrelated for loop.

       

      When my for loop is like this:

       

      for(var i:int = 0; i < items.lenght; i++) { .. }

       

      I don't get the error. But when it's like this:

       

      for(var i:int = (items.length - 1); i >= 0; i--) { ... }

       

      I keep getting that error. What the hell is going on! Also, I tried this:

       

      for(var i:int = 0; i < items.lenght; i++) {

           var index:int = items.length - i - 1;

      }

       

      And I still get the crazy error! Wow this is really slowing down my production. What the heck?