I'm new here, as will be made clear by the beginner-level of my question...

I have a TitleWindow component in SellerEdit.mxml:

<mx:TitleWindow ... >
      <mx:Script>
            <![CDATA[
                  public var seller:Object;
            ]]>
      </mx:Script>
</mx:TitleWindow>

And from my application, I create it:

__editWindow = TitleWindow(PopUpManager.createPopUp(this, SellerEdit,
true));
__editWindow.title = 'Edit Seller';
__editWindow.addEventListener('creationComplete', initWindow);
__editWindow.seller = sellers.selectedItem;

I get an error on the last line, "Access of possibly undefined property
seller through a reference with static type mx.containers:TitleWindow."

According to the "Defining properties and methods in ActionScript"
article in help, it sounds like this is the right way to do it? Am I
just missing something obvious?

thanks,
-josh



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to