.... I didn't know that. Amy, I'm stealing that for a tip :D On Fri, Jan 9, 2009 at 12:01 PM, Amy <[email protected]> wrote:
> --- In [email protected] <flexcoders%40yahoogroups.com>, John > McCormack <j...@...> wrote: > > > > 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 > > > in a SWC from action script? > > > > > > So i have class called "Tracer" in my swc. > > In my ActionScript project build options I add a SWC. > > In any class I then type > > > > var something: > > > > and up pops the autocomplete with the names of my objects in the > list. > > > > var something:Tracer = new Tracer; > > > > Note that you don't have to do this if you put the swc in your libs > folder. This doesn't seem to be well documented...I just found it > through reading a ton of blogs when I made my first swc. > > HTH; > > Amy > > > -- Cheers, Nate ---------------------------------------- http://blog.natebeck.net

