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..

  • 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

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!