thanks Henrik, are you saying that i need to create a custom event class and dispatch an event from that class? otherwise how else could i attach the data to a dispatched event? or do you mean to dispatch an existing event type so when fired the DocumentClass will go into the XMLLoaderClass and grab a public var containing the data? i have never dispatched events before, so i guess i'll have to look into it. i have posted my two classes on pastebin to look at: http://pastebin.com/m4ba8e745 cheers > Date: Thu, 19 Nov 2009 13:58:45 +0100 > From: he...@henke37.cjb.net > To: flashcoders@chattyfig.figleaf.com > Subject: Re: [Flashcoders] OOP and XML > > Dispatch an event when the data is ready and have the main code listen > for the event. > _______________________________________________ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_________________________________________________________________ Got more than one Hotmail account? Save time by linking them together http://clk.atdmt.com/UKM/go/186394591/direct/01/_______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders