Hi, all;

I'm trying to build something like an SAT score sheet.  That is, I 
had it built, but now the requirements have changed and I am having 
problems making the modifications.  Initially, I created it so only a 
single button in the row could be selected, but now I need to be able 
to have multiple buttons selected.  

When the XML structure changed from

<question id="1" selected="2" />

to

<question id="1">
   <selected>2</selected>
   <selected>4</selected>
</question>

the whole thing blew up

I'm using an ItemRenderer in a TileList.  I am using it with 
ClassFactory, because the component can be used in one of two modes, 
one of which will still toggle in the old way and the other of which 
will allow multiple selections.

The errors I am getting are:

TypeError: Error #1009: Cannot access a property or method of a null 
object reference.
        at mx.controls.listClasses::TileBase/createItemRenderer()
[E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\listClasse
s\TileBase.as:1972]
        at 
mx.controls.listClasses::TileBase/http://www.adobe.com/2006/flex/mx/in
ternal::getMeasuringRenderer()
[E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\listClasse
s\TileBase.as:1890]
        at mx.controls.listClasses::TileBase/measureHeightOfItems()
[E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\listClasse
s\TileBase.as:2016]
        at mx.controls.listClasses::TileBase/commitProperties()
[E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\listClasse
s\TileBase.as:2325]
        at mx.core::UIComponent/validateProperties()
[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as
:5670]
        at mx.managers::LayoutManager/validateProperties()
[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutMana
ger.as:519]
        at mx.managers::LayoutManager/doPhasedInstantiation()
[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutMana
ger.as:669]
        at Function/http://adobe.com/AS3/2006/builtin::apply()
        at mx.core::UIComponent/callLaterDispatcher2()
[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as
:8460]
        at mx.core::UIComponent/callLaterDispatcher()
[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as
:8403]

I can post my code if needed, but I know some people get impatient 
with that, so I'll wait to find out if anyone needs to see it :-).

Thanks;

Amy

Reply via email to