Amy,
and how would you add elements to the canvas?! or to the itemrender
itself? because the myRenderer wont have addChild so i can add new
elements. And how do you change the properties of the Canvas? You
adding the Class but you aint adding the whole component i was talking
about. 

Suppose that i want to create for instance

<mx:itemRenderer>
<mx:Component>
   <mx:Canvas backgroundColor="#0000000" >
      <mx:Image
source="@Embed('../assets/images/icons/clear_green_button.png')" />  
      <mx:TextInput text="{data.firstname}" alpha="0.5"
click="{test()}" />
   </mx:Canvas>
</mx:Component>
</mx:itemRenderer>

How i would create this on the fly and add to the itemrenderer?

this is just to ilustrate what i want. I will need to create different
components according to the parameters of my variables that's the
reason i'm struggling to do it dynamically.

If i only knew how to do this from AS3 it would help me a lot.

Thanks


> This makes it sound like the equivalent to new Component() in AS 
> might be
> 
> myRenderer:ClassFactory = new ClassFactory(mx.containers.Canvas);
> 
> Presumably from there you can add stuff to myRenderer before using it 
> as your "rubber stamp", but I've never personally used ClassFactory 
> for anything other than setting global properties on a class I 
> created in AS3 or MXML.
> 
> Is this a correct interpretation of how AS3 works?
> 
> Thanks;
> 
> Amy
>



Reply via email to