work
here is the example
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:local="*" height="700" width="700" backgroundColor="#FFFFFF">
<mx:Script>
<![CDATA[
import mx.core.ClassFactory;
// Cast the value of the itemRenderer property
// to ClassFactory.
public function initCellEditor():void {
myList.itemRenderer=new ClassFactory(RendererState);
}
]]>
</mx:Script>
<mx:List id="myList" variableRowHeight="true" height="180"
width="250" backgroundColor="white" initialize="initCellEditor()">
<mx:dataProvider>
<mx:Object label="Alaska" data=""
webPage="http://www.state.ak.us/"/>
<mx:Object label="Alabama" data=""
webPage="http://www.alabama.gov/" />
<mx:Object label="Arkansas" data="" Rock"
webPage="http://www.state.ar.us/"/>
</mx:dataProvider>
</mx:List>
</mx:Application>
whenI try to use it I get a Access of undefined property Renderer
state error
how do I setup this property?
is that something I do in an action script page?
TIA for your help
Jay
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

