how to use custom tags in flash builder
I have created a new class that implements IFocusManerComponet inteface to make the <Image> class focusble. this class is defined in .as file. I can simply access to the class through the .as files, and do my tabIndex, and all other tab related codes. however I need to change all my <mx.Image> to this custom class in my mxml file , I know I can use <custome:FoucasbleImage> to get access to a new component. but I am given error, that could not resolve <custom:FocusableImage> to a component implementation.

then I created mxml file and created my class in the script section as below 

    <?xml version="1.0" encoding="utf-8"?>
    <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
                         xmlns:s="library://ns.adobe.com/flex/spark"
                         xmlns:mx="library://ns.adobe.com/flex/mx" width="400" height="300">
              <fx:Declarations>
                        <!-- Place non-visual elements (e.g., services, value objects) here -->
              </fx:Declarations>
              <fx:Script>
                        <![CDATA[
                                  import mx.controls.Image;
                                  import mx.managers.IFocusManagerComponent;
     
                                  public class FocusableImage extends Image implements IFocusManagerComponent
                                  {
                                            public function FocusableImage()
                                            {
                                                      super();
                                            }
                                  }
                        ]]>
              </fx:Script>
    </s:Group>


this way I was able to do <custom:FocusableImage>  in my mxml file , but was given another error that  "the class cannot be nested".

can someone tell me how I can have access to my FocusableImage in mxml file using <custom:FocusableImage> and just one .as file or .mxml file . I don't have two files for making the image class focusable 


I appreciate a lot if someone could help me.
how to use custom tags in flash builder
===

I have created a new class that implements IFocusManerComponet inteface to make the <Image> class focusble. this class is defined in .as file. I can simply access to the class through the .as files, and do my tabIndex, and all other tab related codes. however I need to change all my <mx.Image> to this custom class in my mxml file , I know I can use <custome:FoucasbleImage> to get access to a new component. but I am given error, that could not resolve <custom:FocusableImage> to a component implementation.

then I created mxml file and created my class in the script section as below 

    <?xml version="1.0" encoding="utf-8"?>
    <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
                         xmlns:s="library://ns.adobe.com/flex/spark"
                         xmlns:mx="library://ns.adobe.com/flex/mx" width="400" height="300">
              <fx:Declarations>
                        <!-- Place non-visual elements (e.g., services, value objects) here -->
              </fx:Declarations>
              <fx:Script>
                        <![CDATA[
                                  import mx.controls.Image;
                                  import mx.managers.IFocusManagerComponent;
     
                                  public class FocusableImage extends Image implements IFocusManagerComponent
                                  {
                                            public function FocusableImage()
                                            {
                                                      super();
                                            }
                                  }
                        ]]>
              </fx:Script>
    </s:Group>


this way I was able to do <custom:FocusableImage>  in my mxml file , but was given another error that  "the class cannot be nested".

can someone tell me how I can have access to my FocusableImage in mxml file using <custom:FocusableImage> and just one .as file or .mxml file . I don't have two files for making the image class focusable 


I appreciate a lot if someone could help me.