0 Replies Latest reply on Apr 30, 2007 1:36 PM by Illusion_Of_Ender

    TitleWindow

    Illusion_Of_Ender
      Hello,

      I'm creating an app that uses the TitleWindow component as a pop up. Here is the code I use to open it up:

      var deckChooserPanel:DeckChooserPanel = DeckChooserPanel(
      PopUpManager.createPopUp(this, DeckChooserPanel, false));

      This works fine most of the time. But when I load several modules before loading the one with the title window... i get the following error:

      TypeError: Error #1009: Cannot access a property or method of a null object reference.
      at mx.managers::PopUpManager$/createPopUp()
      at DeckChooser/::init()
      at DeckChooser/___Module1_creationComplete()
      at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()[C:\Documents and Settings\acrorel\Local Settings\Temp\aslibc-26332\EventDispatcher.as:184]
      at mx.core::UIComponent/dispatchEvent()
      at mx.core::UIComponent/set initialized()
      at mx.managers::LayoutManager/::doPhasedInstantiation()
      at Function/ http://adobe.com/AS3/2006/builtin::apply()
      at mx.core::UIComponent/::callLaterDispatcher2()
      at mx.core::UIComponent/::callLaterDispatcher()

      Any ideas? Project deadline is coming up, and I'm freakin out!