Re: [flexcoders] use an actionscript class from a SWC in actionscript

2009-01-09 Thread dnk
Thanks to all who replied on this one! Much appreciated. d

Re: [flexcoders] use an actionscript class from a SWC in actionscript

2009-01-09 Thread John McCormack
dnk wrote: > Hi there i have written a very simple class in AS that has ben added > to a personal library (SWC). > > Now in mxml I can reference the classes and components easily by > putting a: > > xmlns:mycomps="*" > > > Now what I would like to know is how would I reference a class that is

Re: [flexcoders] use an actionscript class from a SWC in actionscript

2009-01-08 Thread Nate Beck
Using xmlns (XML Namespace) is mostly for the benefit of MXML. In your xmlns you're pointing to "*", which is the default package. So your Tracer.as file is on the root of the SWC file. Let's say you adding a longer package name within your SWC... "net.natebeck.utils.Tracer". Which is essentiall

Re: [flexcoders] use an actionscript class from a SWC in actionscript

2009-01-08 Thread Mac Martine
If you've added the swc to your project you should be able to access it as if the class is in the same project. Try bringing up code hints as you type 'Tracer' and see if it's listed. Otherwise try adding an import to the package that the class is in (assuming it's in a package). On 1/8/09

[flexcoders] use an actionscript class from a SWC in actionscript

2009-01-08 Thread dnk
Hi there i have written a very simple class in AS that has ben added to a personal library (SWC). Now in mxml I can reference the classes and components easily by putting a: xmlns:mycomps="*" Now what I would like to know is how would I reference a class that is in a SWC from action scri