Skip to main content
Participating Frequently
December 5, 2010
Question

mm.cfg PreloadSwf incorrect + weird behaviour.

  • December 5, 2010
  • 1 reply
  • 996 views

I'm working on a profiler (for fun), the issue is not with programming the profiler, but with setting up mm.cfg and getting the PreloadSwf option to work correctly.

Every swf that is opened will run correctly, except that the swf's background colour is not correct, and takes the value of that in the PreloadSwf swf which surely must be incorrect?

The main problem however, is that often the PreloadSwf swf will not execute, or atleast the allComplete event is not dispatched by the loading of the second swf that we are spying on.

the flash logs always show both the PreloadSwf swf and swf being spyed on load correctly without issue.

    This topic has been closed for replies.

    1 reply

    zdELtazAuthor
    Participating Frequently
    December 6, 2010

    I've totally removed all flash players and plugins from my computer, and reinstalled latest debug players.

    The exact same behaviour can be reported for the standalone debugger version, some swfs will not work properly with PreloadSwf, some work fine (All have their background colour changed to that of PreloadSwf still)

    The behaviour in the browser is a bit better, every swf seems to work almost always with the PreloadSwf, though all again have their background colour changed to that of PreloadSwf.

    zdELtazAuthor
    Participating Frequently
    December 6, 2010

    Yay, success.

    Removing the SetBackgroundColor tag from the PreloadSwf swf seems to circumvent the issue of the PreloadSwf setting the background colour rather than the child swf.

    This does still seem to be a bug thuogh as surely that is not the intention given that none of the other attributes of the PreloadSwf like dimension and framerate take precedence over the child.

    The issue of this not working properly outside of the browser still remains also.