>From my component mxml file in the myComponents sub-folder, I am 
referencing the itemRendere like this:

<mx:List left="55" top="40" right="35" height="22" id="all0List" 
textAlign="center" visible="false" dataProvider="{list0Array}" 
backgroundColor="#535353" borderStyle="none" themeColor="#535353" 
itemClick="modifyAD(all0List.selectedItem.index, true)" 
itemRenderer="itemRenderer1" itemRollOver="rollOver(event); 
contextMenu=cm" itemRollOut="contextMenu=null"/>

If I put the itemRenderer in the same folder as the component, I get 
a build error that it can't find itemRenderer1. If I put it in the 
root of the "src" folder, one level above the component, it works 
perfectly, but then the Library Project can't find it.

--- In [email protected], Jeffry Houser <[EMAIL PROTECTED]> wrote:
>
> 
>  I'm not sure why that would be.  Maybe if you shared some code the 
> problem would be more obvious. 
> 
> jmfillman wrote:
> > Only the itemRenderes are in the root directory. If I put them in 
the 
> > sub-Folder (myComponents), then the components in the sub-Folder 
> > cannot find the itemRenders.
> >
> > --- In [email protected], Jeffry Houser <jeff@> wrote:
> >   
> >>  Assuming Flex Builder 3; src shouldn't be included in the path.
> >>
> >>  So your path is just "itemRenderer1". 
> >>  I would recommend against putting components in the root 
directory 
> >>     
> > in 
> >   
> >> this manner. 
> >>
> >>
> >> jmfillman wrote:
> >>     
> >>> I'm creating a Library Project that is linked to my working 
> >>>       
> > project. 
> >   
> >>> My Build Path links to the "src" folder from my working 
project, 
> >>>       
> > and 
> >   
> >>> I have selected all the relevant files, including my 2 
> >>>       
> > itemRenderers.
> >   
> >>> Within the "src" file, I have a folder that contains 3 
component 
> >>>       
> > mxml 
> >   
> >>> files, and the 2 itemRenderers are at the "src" level. My 
Library 
> >>> Project returns the following error for the itemRenderers in 
the 
> >>> Library Project:
> >>>
> >>> "could not find source for class src.itemRenderer1."
> >>>
> >>>
> >>> src (folder)
> >>>    itemRenderer1.mxml
> >>>    itemRenderer2.mxml
> >>>
> >>>    myComponents (folder)
> >>>       component1.mxml
> >>>       component2.mxml
> >>>       component3.mxml
> >>>
> >>> Why?
> >>>
> >>>
> >>> ------------------------------------
> >>>
> >>> --
> >>> Flexcoders Mailing List
> >>> FAQ: 
> >>>       
> > http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> >   
> >>> Search Archives: http://www.mail-archive.com/flexcoders%
> >>>       
> > 40yahoogroups.comYahoo! Groups Links
> >   
> >>>
> >>>
> >>>   
> >>>       
> >> -- 
> >> Jeffry Houser
> >> Flex, ColdFusion, AIR
> >> AIM: Reboog711  | Phone: 1-203-379-0773
> >> --
> >> Adobe Community Expert 
> >>     
> > 
<http://www.adobe.com/communities/experts/members/JeffryHouser.html>
> >   
> >> My Company: <http://www.dot-com-it.com> 
> >> My Podcast: <http://www.theflexshow.com>
> >> My Blog: <http://www.jeffryhouser.com>
> >>
> >>     
> >
> >
> >
> > ------------------------------------
> >
> > --
> > Flexcoders Mailing List
> > FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives: http://www.mail-archive.com/flexcoders%
40yahoogroups.comYahoo! Groups Links
> >
> >
> >
> >
> >   
> 
> -- 
> Jeffry Houser
> Flex, ColdFusion, AIR
> AIM: Reboog711  | Phone: 1-203-379-0773
> --
> Adobe Community Expert 
<http://www.adobe.com/communities/experts/members/JeffryHouser.html>
> My Company: <http://www.dot-com-it.com> 
> My Podcast: <http://www.theflexshow.com>
> My Blog: <http://www.jeffryhouser.com>
>


Reply via email to