2 Replies Latest reply on Jan 28, 2009 11:03 AM by smokeranch

    Referencing components in a peer directory

    smokeranch Level 1
      Hello!

      (disclaimer: I tried searching the forums before posting but the search appears broken at the moment)

      Is it possible to reference a custom component that is not in the same folder or a subfolder, but is in a peer folder? I have a Flex app that contains two sub folders: 'components' and 'flexlib'

      From my main application mxml file, if I want to reference a custom component in the 'flexlib' folder, I add a namespace declaration to the Application tag like this:
      xmlns:flexlib="flexlib.*"

      However, what if I want to use the flexlib components from within files that are in my 'components' folder? Since flexlib is not a subdirectory of the components folder it does not work the same way. Do I have to make the flexlib folder a subdirectory of 'components'?

      Thanks for any help!

      Aaron