Re: [flexcoders] TitleWindow.title won't update from a setter

2010-04-23 Thread Srinivas S.M
Hi Nick, Try below and see whether it works public function set iFormID ( value : String ) : void { if ( _iFormID == value ) return; _iFormID = value; if(value.length 0) { this.title = Create Vendor; } else { this.title = Create Vendor by

Re: [flexcoders] TitleWindow.title won't update from a setter

2010-04-21 Thread Alex Harui
Are you sure your setter is getting called? If so, when is it called? Maybe it is being called inside commitProperties after super.commitProperties. On 4/20/10 3:07 PM, Nick Middleweek n...@middleweek.co.uk wrote: Hi, I've got a small MXML Component based on TitleWindow which I'm

Re: [flexcoders] TitleWindow.title won't update from a setter

2010-04-21 Thread Nick Middleweek
Hi, When tracing the setter, it is definately getting called. I'm currently just trying to set this.title from the iFormID setter. Here's my setup... I have an MXML ArrayCollection with the CreateVendorDialog component inside of the Array so it's created but not displayed (not sure if this is

Re: [flexcoders] TitleWindow.title won't update from a setter

2010-04-21 Thread Alex Harui
Interesting. Try calling validateNow after addPopUp. On 4/21/10 2:55 AM, Nick Middleweek n...@middleweek.co.uk wrote: Hi, When tracing the setter, it is definately getting called. I'm currently just trying to set this.title from the iFormID setter. Here's my setup... I have an MXML

Re: [flexcoders] TitleWindow.title won't update from a setter

2010-04-21 Thread Nick Middleweek
Alex, That has fixed it but has now made me realise I'm initialising my private var _iFormID : String = ; And the first time I was opening the Popup, I was setting the .iFormID = , so the setter was *not* getting called. I'm now initialising it to null and it's working fine... Thanks for your

[flexcoders] TitleWindow.title won't update from a setter

2010-04-20 Thread Nick Middleweek
Hi, I've got a small MXML Component based on TitleWindow which I'm opening with PopupManager that has a setter and getter called iFormID. In the setter I have this code... public function set iFormID ( value : String ) : void { if ( _iFormID == value ) return; _iFormID = value;