I did try using a mx.utils.Delegate object but that didn't seem to work
either.  Basically, I used:

   // create login window, etc...

   login.addEventListener("login_success",
      new mx.utils.Delegate.create(this, showSuccessPanel));

and...

   function showSuccessPanel():Void
   {
      login.deletePopUp();
      main_stack.selectedChild = login_ok_panel;
   }


In my LoginWindow file, if the username/password matched, I used:

   dispatchEvent({type: "login_success"});

Still didn't work, unless I'm missing something obvious on how delegates
work.  In the Developing Rich Clients book, page 367, I didn't see where
the setUpContextMenu was defined so perhaps there's an object being
passed I'm not aware of.

Thanks,

Blake


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to