Hi,

I'm trying to create an MXML component extending from canvas, with
some predefined components (buttons and some graphical elements) and
behaviors, but I also want any MXMLs using the component to be able to
specify additional contents for the components. (Since it's a canvas,
I assume it's the calling screen's responsibility to position it's
children correctly.)

Of course, first thing I tried is just to do it directly, and I get an
error "Multiple sets of visual children have been specified...etc". 

Is what I'm thinking of possible? Any advice? I took a look at the
source of another container class (Panel), which I assumed would do
something similar, but it seems the code there is a bit more
complicated that I would like. I'm hoping there's a simple way to
specify that I want to accept visual children from both the component
declaration and the component instance.

Thanks,

Roy


Reply via email to