1 Reply Latest reply on Oct 24, 2006 4:36 AM by ju2999

    Defining Namespace of an itemRenderer

    ju2999
      Hello,

      I want to create an instance of an itemRenderer by using ActionScript, like:

      .. passingVar="{new itemRenderer()}" ...

      But the problem is, the itemRenderer relies on a sub directory.

      I tried to define a namespace for datagrid itemrenderers like: xmlns:mx.controls.dataGridClasses.DataGridItemRend erer="item_renderer.*"

      This would maybe work if I used mx-tags for defining the renderer, but I do it by ActionScript.

      I have no idea how to set another namespace, so "new itemRenderer()" would find the correct mxml-Script.

      Any ideas? Thanks.