2 Replies Latest reply on Oct 16, 2008 2:48 PM by dcflex

    Accessing Component Variable From Main

      I follow the document below to create a component. But for some reason, I got this compile error:
      1119: Accessing a possibly undefined property myVariable.. static mx.containers.TitleWindow..
      http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Live Docs_Book_Parts&file=layouts_065_50.html

      I tried to defined the variable as simple String or Object but the main application still can't recognized it. I can create the popup window just fine if I don't have a statement like myPopupWindow.myVariable = "1234";. I can set the title and stuff but I just can't call any public method or use the public component variables as he did in the document above.
      Any suggestion?