RE: [flexcoders] Must call super.commitProperties at END of overrided commitProperties when extending TitleWindow?

2008-08-07 Thread Gordon Smith
] On Behalf Of Alex Harui Sent: Wednesday, August 06, 2008 7:35 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Must call super.commitProperties at END of overrided commitProperties when extending TitleWindow? Well, I said you were strict and not wrong. I've heard others say

[flexcoders] Must call super.commitProperties at END of overrided commitProperties when extending TitleWindow?

2008-08-06 Thread Daniel Gold
I don't think I've seen anything like this before and maybe I'm just going crazy. I've got a class that extends TitleWindow, it has a few setters and some of these can affect what the displayed title should be. These all use invalidation flags and don't get fully committed until commitProperties.

Re: [flexcoders] Must call super.commitProperties at END of overrided commitProperties when extending TitleWindow?

2008-08-06 Thread Josh McDonald
The title property is simply a property that gets passed to the title UIComponent in commitproperties. Timeline: 1. You call super.commitProperties() 2. super.commitProperties() sees that this._title hasn't changed since the last commitProperties(). so doesn't set _myTitleComponent.title (or

Re: [flexcoders] Must call super.commitProperties at END of overrided commitProperties when extending TitleWindow?

2008-08-06 Thread Daniel Gold
it should have still updated on the next invalidation pass because in Panel.as my call to set title sets _titleChanged = true, which should cause that logic block to execute in the next commitProperties. Maybe I was off in debugging and never hit another invalidation pass. This does bring up a

Re: [flexcoders] Must call super.commitProperties at END of overrided commitProperties when extending TitleWindow?

2008-08-06 Thread Josh McDonald
After a quick poke around in Panel.as, it seems that what I described isn't *exactly* what's going on, you might want to do some single-stepping to see where it's going wrong. But the root probelm is the same, and the solution isn't to put super.commitProperties() at the end of your method. You

RE: [flexcoders] Must call super.commitProperties at END of overrided commitProperties when extending TitleWindow?

2008-08-06 Thread Alex Harui
@yahoogroups.com Subject: Re: [flexcoders] Must call super.commitProperties at END of overrided commitProperties when extending TitleWindow? After a quick poke around in Panel.as, it seems that what I described isn't *exactly* what's going on, you might want to do some single-stepping to see where it's going

RE: [flexcoders] Must call super.commitProperties at END of overrided commitProperties when extending TitleWindow?

2008-08-06 Thread Alex Harui
super.commitProperties at END of overrided commitProperties when extending TitleWindow? it should have still updated on the next invalidation pass because in Panel.as my call to set title sets _titleChanged = true, which should cause that logic block to execute in the next commitProperties. Maybe

Re: [flexcoders] Must call super.commitProperties at END of overrided commitProperties when extending TitleWindow?

2008-08-06 Thread Josh McDonald
I guess :) I just *really* don't like a situation where the position of super.whatever() affects whether or not it works. Frankly If I were designing a language super.foo() would be the default, and there'd be a keyword to block it. If super.commitProperties() can be expected to be anywhere

RE: [flexcoders] Must call super.commitProperties at END of overrided commitProperties when extending TitleWindow?

2008-08-06 Thread Alex Harui
] On Behalf Of Josh McDonald Sent: Wednesday, August 06, 2008 6:31 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Must call super.commitProperties at END of overrided commitProperties when extending TitleWindow? I guess :) I just *really* don't like a situation where the position

Re: [flexcoders] Must call super.commitProperties at END of overrided commitProperties when extending TitleWindow?

2008-08-06 Thread Daniel Gold
*To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Must call super.commitProperties at END of overrided commitProperties when extending TitleWindow? I guess :) I just *really* don't like a situation where the position of super.whatever() affects whether or not it works. Frankly

Re: [flexcoders] Must call super.commitProperties at END of overrided commitProperties when extending TitleWindow?

2008-08-06 Thread Josh McDonald
in. -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Josh McDonald *Sent:* Wednesday, August 06, 2008 6:31 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Must call super.commitProperties at END of overrided commitProperties when