3 Replies Latest reply on Sep 10, 2008 5:17 AM by Peter Lorent

    Using custom component as canvas

    janoschii
      I found a lot of tutorials about using custom components.
      But I didn't found a description how I can use it like a canvas.
      Maybe If i use Actionsscript. But I like to use the easy MXML.
      I want this:

      ==app.mxml=====
      <mx:Application xmlns:my="*">
      ---<my:CustomCanvas>
      ------<mx:Label text="Hello"/>
      ------<mx:Button label="PressMe"/>
      ---</my:CustomCanvas>
      </mx:Application>
      =======================

      ==CustomCanvas.mxml=====
      <mx:Canvas>
      ---<Childs/> // <= I know thats wrong, but what would be right?
      </mx:Canvas>
      ==================

      Would be very nice If someone could help.
      Thank you guys

      Jan