[Flashcoders] targeting an event listner to a button inside a movieclip?

2008-11-13 Thread Michael Knauf
First time posting on this list, hope y'all can help with this one, it should be easy, but having gone through what seems to be every possible permutation, I can't get it right. in the main movie, there's a button named upperoffice, and the event listner correctly triggers the

Re: [Flashcoders] targeting an event listner to a button inside a movieclip?

2008-11-13 Thread Daniel Boey
Michael, Fix 1 (more like Issue 1) is probably the issue you're facing: http://curtismorley.com/2007/08/15/flash-cs3-flex-error-1009-cannot-access-a-property-or-method-of-a-null-object-reference/ I've made similar tests that scripts just don't work because the objects are not there yet even

Re: [Flashcoders] targeting an event listner to a button inside a movieclip?

2008-11-13 Thread Daniel Boey
Michael, (It slipped my mind, this) OR - you could use ADDED_TO_STAGE EventListener in that frame, and have a function wrap around your button listener code. Should do the trick. - Daniel - On Fri, Nov 14, 2008 at 10:16 AM, Daniel Boey [EMAIL PROTECTED] wrote: Michael, Fix 1 (more like