loading krpano.swf creates an unwanted flash resize..

  • Hi there,

    I am a long time flash / javascript programmer. Recently started working for a client who uses krpano.

    Basically the issue is when krpano is introduced to already visible flash module (I guess it loads krpano.swf? after running the code 'embeddedstartup'), there is a brief unwanted screen resize. I can detect this using stage.addEventListener(Event.RESIZE.. but not sure how to avoid it, or block it..

    Any help would be very appreciated..

    Thank you,

    Ozzie..

  • Anyone?

    I am suspecting krpano.swf is forcing to resize the swfobject somehow and I dont think I can re-publish that module to fix the issue.

    Any other ideas?

    Thanks,

    Ozzie

  • Hi,

    okay, I see, krpano sets the stage scaleMode to 'noScale':

    Code
    stage.scaleMode = "noScale";

    and your code set's it back and this causes the resizing.

    Btw - krpano might not work/display correctly with other scale modes.

    Best regards,
    Klaus

  • Hey Klaus,

    Is there a way to override that at loading? I am setting an event listener for the stage (RESIZE) to correct it but then somehow there is another resizing issue related to the original swf size of the krpano.

    Is it possible to cancel the NO_SCALE part internally on krpano,swf or change its size after it loads (but before it shows up on screen)?

    Thanks,

    Oz

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!