5 Replies Latest reply on May 11, 2011 12:22 PM by Kristin95762

    parentApplication issues, Arrrrgh

    Kristin95762 Level 1



      I have a main file and a custom component.


      In my main file I have a variable: bdSelectedBook = "some book";


      I want to pass this to my custom component which is a TitleWindow.


      In my TitleWindow.mxml I have a trace statement: trace(this.parentApplication.bdSelectedBook)


      When I run the app, my trace statement returns some book.


      If I assign this.parentApplication.bdSelectedBook to a variable in the TitleWindow component I get:

      Type 1119: Access of possibly undefined property parentApplication through a reference with static type Class


      Why does it work in the trace statement and not in practical usage?


      I'm having trouble figuring out which class needs to be imported as well.


      What gives??