The module loads and displays just fine if it's added to the visual hierarchy (i.e. <mx:ModuleLoader> is somewhere in my app and is visible). I just can't get a snapshot of it programatically.
--- In [email protected], "rob_mcmichael" <rob_mcmich...@...> wrote: > > --- In [email protected], "Borek" <borekbe@> wrote: > > > > We are building a presentation software where the slides are realized as > > either Flash SWF files or Flex modules (also SWF files but with different > > structure). I need to show a thumbnail preview of the slide upon loading > > and it works fine for Flash SWF files: I get the DisplayObject from > > SWFLoader(event.target).content and pass it to our saveThumbnail() routine. > > > > Flex slides, however, seem to resist every attempt to be "screenshotted". I > > seem to be getting the right object with > > > > DisplayObject(event.module.factory.create()) > > > > within the READY event handler but when I pass that object to our > > saveThumbnail() routine, only a white rectangle is stored (the rectangle > > has the correct size, though!). > > > > Any ideas what else I need to do? I've tried to add CREATION_COMPLETE event > > handler but it is never triggered. I am kind of lost. > > > > Any help would be greatly appreciated, > > Borek > > > > Check you haven't got anything loaded in from an external domain. This would > cause it to fail :( >

