1 Reply Latest reply on Jun 17, 2009 12:02 PM by Zolotoj

    Confusion with all these namespaces

    Zolotoj Level 3

      Here is a fragment of my mxml component:

       

       

      but this does not work:

       

      models subfolder is in src.

       

      Error message:

      Description Resource Path Location Type
      1046: Type was not found or was not a compile-time constant: CustomerDetailsModel. CustomerDetails.mxml UFDPortal/src Unknown Flex Problem

       

      Thanks for help.

        • 1. Re: Confusion with all these namespaces
          Zolotoj Level 3

          And no code is shown.

           

          Here is a fragment of my mxml component:

          <?xml version="1.0" encoding="utf-8"?>
          <local:reportRunParameters
          
           xmlns:local="*"xmlns:fc="
          
          com.adobe.flex.extras.controls.*"xmlns:fx="
          
          http://ns.adobe.com/mxml/2009" xmlns:s="
          
          library://ns.adobe.com/flex/spark" xmlns:mx="
          
          library://ns.adobe.com/flex/halo"xmlns:models="
          
          models.*"width="
          
          100%" height="100%" xmlns:modulecode="modulecode.*">
          
          <fx:Script>
          <![CDATA[
          
          .....
          

           

          but this does not work:

          <models:CustomerDetailsModel
          
           id="customerdetails"/>
          

          models subfolder is in src and

          CustomerDetailsModel

           

          .as is in the models.

           

          Error:

          Error message:

          Description Resource Path Location Type
          1046: Type was not found or was not a compile-time constant: CustomerDetailsModel. CustomerDetails.mxml UFDPortal/src Unknown Flex Problem