1 Reply Latest reply on Aug 27, 2007 1:45 PM by JuliaO

    How to access dynamic movie clips in a loaded swf

    JuliaO
      Hello,

      I have a main movie file that loads a swf through loadclip.

      There are several dynamic movie clips in the library of the loaded swf (all set to export in first frame).

      I'm trying to create a popup window (using the Window component) by using code in the main movie to popup content that is in a dynamic movie clip within the swf loaded by loadclip.

      So far, I can create the popup without any problem as long as the contentPath refers to a linkage identifier of a library item in the main movie, but it won't work for a library item in the loaded movie. Is there a way to make this work? Is there a special way to reference library items in loaded movies?

      Here's my code to create the window:
      myWin = mx.managers.PopUpManager.createPopUp(this, mx.containers.Window, true, {title:mytitle, contentPath:myref, closeButton:true});

      where myref is a string containing the linkage identifier for the library item within the loaded swf.

      Thanks in advance for any assistance,


      Julia