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" <[email protected]> wrote:






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;


    if(iFormID.length > 0)
    {
        this.title = "Create Vendor";
    }
    else
    {
        this.title = "Create Vendor by iForm";
    }

}


I am find that the title remains blank, but then if I close the PopUp and open 
it again, the last value the .title should have been is now visible...

Is there some a refresh issue with TitleWindow.title?

If I set the .title outside of the component, after I've used PopupManager, 
then it's set as expected but I want to control the .title from the setter 
function.


Does anyone have an idea what I should be doing?

I've also tried setting a dirty_flag, calling invalidateProperties() and 
setting the .title from within commitProperties() but no joy there either...


Thanks for any help...
Nick






--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui

Reply via email to