Thanks Tom.

Trying it out, but I'm still having problems referencing functions.  I
have a function inside an AS file (tmp.as) called test() that displays
an alert.  This is in a library called TestLibrary, which I've created
and added to my main apps' project references.  I've also added
TestLibrary.swc to my Library path in the main apps' Project Build
Path, with the link type set to merge into code.  (tired also adding
the entire TestLibrary Project to the library path of the main app
instead of just the swc file, but same results...)

I try and call test() from an AS file in my main app, but I still get
"Call to a possibly undefined method test." compile error.  I've tried
referencing the function as TestLibrary.test() and
TestLibrary.tmp.test() but no joy.

Can you have a whole project as a library?  I mean I have an mxml file
in the library that contains includes to other AS files, including
tmp.as.  I don't check the AS files when selecting the classes in the
librarys Library Build Path, as if I do, I get errors due to the use
of the words 'public' and 'private' in my var and function
declarations.  But these AS files are not listed in the Assets tab, so
it seems I can't include them anywhere.  Which is why I assume they
get referenced when I select the mxml file in the Library classes.

Geeze, does that make sense???

Anyway, at the end of the day it still won't compile and I can't
access functions from the library.

Can anyone see where I'm going wrong from this convoluted
description?? ;-)

Cheers,
K.

--- In [email protected], Tom Chiverton <[EMAIL PROTECTED]>
wrote:
>
> On Monday 04 September 2006 12:03, kristian_wright2002 wrote:
> > Looking into making the sub apps into Library Projects now, but not
> > sure if this is the right way to go. Been scouring the net and trying
> 
> I'd go that route.
> 
> -- 
> Tom Chiverton
> Helping to seamlessly benchmark world-class developments
> 
> ****************************************************
> 
> This email is sent for and on behalf of Halliwells LLP.
> 
> Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at St James's Court Brown Street Manchester M2 2JF.
 A list of members is available for inspection at the registered
office. Any reference to a partner in relation to Halliwells LLP means
a member of Halliwells LLP. Regulated by the Law Society.
> 
> CONFIDENTIALITY
> 
> This email is intended only for the use of the addressee named above
and may be confidential or legally privileged.  If you are not the
addressee you must not read it and must not use any information
contained in nor copy it nor inform any person other than Halliwells
LLP or the addressee of its existence or contents.  If you have
received this email in error please delete it and notify Halliwells
LLP IT Department on 0870 365 8008.
> 
> For more information about Halliwells LLP visit www.halliwells.com.
>






--
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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to