I talk to myself all the time, so why not do it on FlexCoders?

I was thinking more about my problem:  I had tried to do something
like this:

//code here to create new popup of my TitleWindow form, then...
myTitleWindow.person = myPerson;

But I was getting errors and/or nothing because myTitleWindow was not
done creating its children before I set its person variable.

So I did this:

var myTitleWindow = //code to create the popup using my mxml extension
                    //of TitleWindow with the set person() function in  
                    //it
var myFunc:Function = function():void {myTitleWindow.person = myPerson}

myTitleWindow.addEventListener("creationComplete", myFunc);

Seems to work, and is finally gives me a reason to understand why one
would ever create a variable of type Function.

Comments or concerns are welcome... but I thought I'd share



Reply via email to