0 Replies Latest reply on Jan 23, 2007 6:50 PM by chua12345

    Custom Component Render Problem

    chua12345
      Hi,

      I am trying to go through the Button source code to examine how it is written, I have copied the original Button.as into a new package, and I rename the package. I copy the styles folder, Version.as into my relative folder too. It compiles, and exist in the Component panel of the builder. However, when I drag it into the UI area and drog, nothing is render except a small rectangle. I can click on it and specified the width and height in the properties panel. After specifying the width and height, it is still showing a empty transparent rectangle in the design view, clicking on it can see the border, but can see the button image. It works fine when I run the application. May I know how does the Flex builder render the custom component when I drag and drop from the component window?

      Thanks in advance for any help.

      Regards,
      Chee Seng