This content has been marked as final. Show 3 replies
OK, but I'm not really sure what your code is doing... Assuming editSta is an instance of your EditStation popup (if it is, you forgot to say 'new EditStation(...)' ), my popup does not have a constructor that accepts an IFlexDisplayObject (which is what PopUpManager.createPopUp returns), unless by some wacky inheritance...
I'm also unsure of what the line:
Is this a constructor? A cast of editSta? And then why do you use IFlexDisplayObject(editSta) in the centerPopUp method...? Please explain these things...
public var editSta:EditStation; //Create a variable whose type is the mxml popup screenI made
// Type casts (or converts) IFlexDisplayObject to an EditStattion and assigns it to editSta
editSta=EditStation(PopUpManager.createPopUp(this, EditStation, true)
// Type casts (or converts) editSta to an IFlexDisplayObject
// Popup my screen centered