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

    Custom Components Question


      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:




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


      where HostView is my custom class that extends from UIComponent.


      This is my application code:




      <?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" />


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


      Thanks for your answers!