1 Reply Latest reply on Jun 23, 2008 11:10 AM by matthew horn

    custom component not working

      Hi there

      I'm trying to create a small custom component & get it working.

      But I have got an error and not sure why.

      The error is:

      1046: Type was not found or was not a compile-time constant: (Line 4)

      Here is the code:

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute" xmlns:comp="components.*">
      <mx:VBox x="10" y="10">
      <comp:CountriesCombo id="countryCBO"/>



      <?xml version="1.0" encoding="utf-8" ?>
      <mx:ComboBox xmlns:mx=" http://www.adobe.com/2006/mxml">
      <mx:Object label="Australia" data="AU"/>
      <mx:Object label="Canada" data="CA"/>
      <mx:Object label="New Zealand" data="NZ"/>
      <mx:Object label="United Kingdom" data="UK"/>
      <mx:Object label="United States of America" data="US"/>

      thanks in advance