4 Replies Latest reply on Jul 30, 2009 11:29 AM by _CoreDragon

    Custom Components Question

    _CoreDragon Level 1

      Hey All,

       

      I created a custom Flex component in ActionScript by extending the UIComponent class. Now I want to create a visual mxml component that extends this custom class. I have the following code now:

       

      Test.mxml

       

      <HostView xmlns="NexJ.UI.View.*" xmlns:mx="http://www.adobe.com/2006/mxml">
          <mx:Label text="RANDOM TEST TEXT">
          </mx:Label>
      </HostView>

       

      where HostView is my custom class that extends from UIComponent.

       

      This is my application code:

       

      App.mxml

       

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:custom="*">
          <custom:Test x = "100" y=" 100" />
      </mx:Application>

       

      But I see nothing displayed. What am I doing wrong?

       

      Thanks for your answers!