1 Reply Latest reply on Jul 10, 2009 3:26 PM by injpix

    Problems not going away?


      Very new to Flex. I have an AS3 project in Flex and did not have data types with my vars and methods at first. I am not trying to add them, but as I do, they problem icon on the left does not go away. Why might this be? What am I doing wrong?


      Here is an example:

      public function VirtualPet (name:String) :void


      Which I get the error message: "parameter 'name' has no type declaration."



      Or this:

      private var petName:String;


      Which I get the error message:

      1008: parameter 'petName:String' has no type declaration.



      Why is that? Seems like it does not recognize the colon?


      Thanks a lot for any help!!!