Just a guess as to why Delegate might not work... (if you using MTASC to compile) .... I was using Delegate without apparent success when I introduced it to a project that I was compiling using MTASC. Appeared to compile OK but Delegate didn't work as expected. Then, I compiled with MM IDE, and it did work; and continued to work when subsequently compiling with MTASC. I'm using the -mx switch to enable component classes; so MTASC handles classes in the mx namespace differently; don't fully understand the ins and outs of this, but might explain the issue I had with mx.utils.Delegate - maybe it needs Delegate exported to the swf from the MM IDE Anyway, that got Delegate working for me
Cheers Rob > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 7 Nov 2005 12:11:30 -0500 > From: "Eric E. Dolecki" <[EMAIL PROTECTED]> > Subject: [Flashcoders] scope in classes > To: Flashcoders mailing list <[email protected]> > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed > > Wondering what the best way to scope mc event functions to a function > in a class is... > > lets say in the class init (this is for a component), you attach some > mcs. > > Then you want to have onRelease functions that scope back down to a > private function to handle that. Whats the best way to do that > without nesting functions and keeping scope? Delegate.create(this, > funcName) ends up scoping to the mc in question. > > ed > > > ------------------------------ Important - This email and any attachments may be confidential. If received in error, please contact us and delete all copies. Before opening or using attachments check them for viruses and defects. Regardless of any loss, damage or consequence, whether caused by the negligence of the sender or not, resulting directly or indirectly from the use of any attached files our liability is limited to resupplying any affected attachments. Any representations or opinions expressed are those of the individual sender, and not necessarily those of the Department of Education & Training. _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

