Is there a good resource/tutorial on Library projects. The process 
for importing and using seperate mxml files seems to be different 
from a standard Flex project.

For example, I have several popup windows. They are in the same sub-
folder as the main file of the component. In a standard project, the 
component and the project can find the popup windows just fine. In 
the Library Project, those files are not found, generating a "could 
not find source for class..." error.

I need to resolve the issue, but I also need to understand why and 
what is the best practice.

Thank you.

--- In [email protected], "jmfillman" <[EMAIL PROTECTED]> wrote:
>
> That resolved that issue, and created another, similar issue :-)
> 
> I'm using some popUp titleWindows. I import them into the component 
> like this:
> 
> import myComponents.popUp1;
> 
> And then I launch the PopUp like this:
> 
> var popWindow1:popUp1;
> 
> The Library Project generates the following error:
> 
> could not find source for class 
> myLibrarySource.myComponents.popUp1.myProject_Library
> 
> 
> --- In [email protected], Jeffry Houser <jeff@> wrote:
> >
> > For itemRenderers I believe you have to specify the full class 
> name.  
> > So, move the files to the subfolder and change the itemRenderer 
> value to 
> > "MyComponents.itemRenderer1"
> > jmfillman wrote:
> > > >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 <jeff@> 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>
> > >>
> > >>     
> > >
> > >
> > >
> > > ------------------------------------
> > >
> > > --
> > > 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