3 Replies Latest reply on Dec 7, 2010 1:33 AM by Kodiakkb

    problem with namespaces

    mohsena

      Hello ,I use flash builder and flex 4,I encounter following problem

       


      Could not resolve <mx:Canvas> to a component implementation

       

      my namespaces are:

       

      <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                                                 xmlns:s="library://ns.adobe.com/flex/spark"
                                                 xmlns:mx="library://ns.adobe.com/flex/halo"
                                               
                                                 applicationComplete="init()"
                                                 backgroundAlpha="0"
                                                 showStatusBar="false"
                                                 title="Main window">

       

      I tried to replace  xmlns:mx="library://ns.adobe.com/flex/halo" with xmlns:mx="library://ns.adobe.com/flex/mx" the error disappeared but I encounter another error:
      The style 'themeColor' is only supported by type 'mx.controls.Button' with the theme(s) 'halo'
      and two warnings:
      Type 'Canvas' in CSS selector 'Canvas' must be qualified with a namespace
      Type 'WindowedApplication' in CSS selector 'WindowedApplication' must be qualified with a namespace
      It seems that I need to have both name spaces:
      xmlns:mx="library://ns.adobe.com/flex/halo"
      xmlns:mx="library://ns.adobe.com/flex/mx"
      together that it is not possible to use both of them in <s:WindowedApplication> .
      I do lots of research in google to solve it ,but I couldn't find any way till now
      Would you please help me ,I appreciate that