I have found that putting in a relative path seems to do the trick: itemRenderer="z.IRSnippetForSelection"
Where z is in a sub directory of my source. Paul ----- Original Message ----- From: "Glenn Williams" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Saturday, January 26, 2008 3:44 PM Subject: [flexcoders] Re: itemRenderer in folder other than source root > thanks mate, I already have that, accessing the component is fine, it > only a problem with registering the item renderer with it (in the mxml > code, ok if I add it with AS) > > just a strange one. No idea why this one wont work. > > thanks everyone > > --- In [email protected], "Paul Andrews" <[EMAIL PROTECTED]> wrote: >> >> You need to create a new xml namespace. >> >> for example: xmlns:view="com.foo.foo.foo.views.*" and add it to > the the >> mxml file that references the component. >> >> I keep my actionscript classes amd components completely separate.. >> >> Paul >> >> >> ----- Original Message ----- >> From: "Glenn Williams" <[EMAIL PROTECTED]> >> To: <[email protected]> >> Sent: Saturday, January 26, 2008 2:46 PM >> Subject: [flexcoders] Re: itemRenderer in folder other than source root >> >> >> > No, the class path is complete (no src) >> > main mxml in root, views in com.foo.foo.foo.views, renderers in >> > com.foo.foo.foo.renderers etc. I ended up just assuming that you can't >> > use a class path in an mxml declaration. i know the class path is fine >> > because now I#m setting the renderer with AS I use the class path and >> > its ok. It's not really a problem seeing as I have the functionality I >> > want it just seems that it sound work the other way. >> > >> > bear in mind the renderer is an mxml file, not an AS file, just in >> > case that makes a difference. I know it shouldn't as it's compiled >> > down to a class anyway. oh well. >> > >> > thanks. >> > >> > --- In [email protected], "Johannes Nel" <johannes.nel@> >> > wrote: >> >> >> >> is your main mxml page also in the src folder or said another way >> > have you >> >> added the src folder to your class path >> >> >> >> 2008/1/25 Sherif Abdou <sherif626@>: >> >> >> >> > src does not count so it would be "com.blah.blah.foo" >> >> > >> >> > ----- Original Message ---- >> >> > From: Glenn Williams <glenn@> >> >> > To: [email protected] >> >> > Sent: Friday, January 25, 2008 12:50:07 PM >> >> > Subject: [flexcoders] itemRenderer in folder other than source root >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > Ok, this must be simple by i can't see it. >> >> > >> >> > >> >> > >> >> > Take this example >> >> > >> >> > >> >> > >> >> > <mx:List id="myListNav" itemRenderer="ListRenderer" /> >> >> > >> >> > >> >> > >> >> > Say its part of a file foo.mxml that's in the folder > src\com\blah\ >> >> > blah\foo. mxml >> >> > >> >> > >> >> > >> >> > The itemRenderer is ListRenderer. mxml >> >> > >> >> > >> >> > >> >> > No problems right. >> >> > >> >> > >> >> > >> >> > What I can't figure out is how I can put ListRenderer. mxml >> > anywhere apart >> >> > from the source root src\ListRenderer. mxml >> >> > >> >> > >> >> > >> >> > itemRenderer=" what do I put here if I want to add a path other >> > than root >> >> > to the render? " >> >> > >> >> > >> >> > >> >> > I know I can add the Renderer with AS, but there must be a simple >> > way to >> >> > use the code above. >> >> > >> >> > >> >> > >> >> > ta >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > Glenn Williams >> >> > >> >> > <tiny*lion**:*dev/> >> >> > >> >> > >> >> > >> >> > 10 Print "glenn " >> >> > >> >> > 20 Goto 10 >> >> > >> >> > 30 Rem " was that really 1982? it seems like only yesterday " >> >> > >> >> > >> >> > >> >> > >> >> > ------------------------------ >> >> > Looking for last minute shopping deals? Find them fast with Yahoo! >> > > Search.<http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsearch/category.php?category=shopping> >> >> > >> >> > >> >> >> >> >> >> >> >> -- >> >> j:pn >> >> \\no comment >> >> >> > >> > >> > >> > >> > -- >> > Flexcoders Mailing List >> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt >> > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.com >> > Yahoo! Groups Links >> > >> > >> > >> > >> > > > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com > Yahoo! Groups Links > > > >

