0 Replies Latest reply on May 12, 2010 6:12 AM by Khokhaneshiya

    Allow stage to be used by loaded swf


      Hello there,


      I have created an adobe air application (say A.swf) using Flash CS3 (Adobe AIR 1.0). The app loads another simple (FP 9 exported) swf (say B.swf) file from the same directory inside the application, that works perfectly.


      In B.swf, i have used several combobox, lists components. When I try to open any combobox, it give following error :

      TypeError: Error #2007: Parameter child must be non-null.
          at flash.display::DisplayObjectContainer/addChildAt()
          at fl.controls::BaseButton/drawBackground()
          at fl.controls::LabelButton/draw()
          at fl.core::UIComponent/drawNow()
          at fl.controls::List/drawList()
          at fl.controls::List/draw()
          at fl.core::UIComponent/drawNow()
          at fl.controls::List/scrollToIndex()
          at fl.controls::SelectableList/scrollToSelected()
          at fl.controls::ComboBox/open()
          at fl.controls::ComboBox/onToggleListVisibility()
      Cannot display source code at this location.


      I think this is related to stage permissions as B.swf can't access the stage of A.swf. So my question is how can I allow B.swf to access the stage of A.swf. Any help is appreciated.