Modelpopup showing behind flash animation, any solution?

Last post 07-16-2009 6:30 AM by Jalias. 5 replies.

Sort Posts:

  • Modelpopup showing behind flash animation, any solution?

    08-03-2008, 12:29 AM
    • Member
      18 point Member
    • cmshafi
    • Member since 07-13-2008, 8:45 AM
    • Posts 10

    modelpopupextender works fine but
    I have used a flash animation clip in my web page. the popup showing behind the flash animation in IE. Is there any way to solving this problem?   In Mozilla firefox works fine, flash animation will hide when popup; Thanks in advance.

  • Re: Modelpopup showing behind flash animation, any solution?

    08-03-2008, 5:59 AM
    • Contributor
      2,518 point Contributor
    • lionscub
    • Member since 10-10-2007, 9:40 AM
    • Israel
    • Posts 452

    Try doing what IE 6 does with dropDownLists when a modalPopup is shown. Hide the object that displays the flash animation. To do this via javascript set the display of the object to none, like this:

    objFlash = document.getElementById('flashObject');
    objFlash.style.display = 'none';

    and then when the modalPopup is closed change it back like this:

    objFlash = document.getElementById('flashObject');
    objFlash.style.display = 'inline';

    Hanan Schwartzberg
    --------------------
    http://www.lionsden.co.il
  • Re: Modelpopup showing behind flash animation, any solution?

    08-04-2008, 2:28 AM
    • Member
      18 point Member
    • cmshafi
    • Member since 07-13-2008, 8:45 AM
    • Posts 10

    How can i call this function from my ModalPopupExtender

    failed using onload, plz provide me the method

     

  • Re: Modelpopup showing behind flash animation, any solution?

    08-05-2008, 10:56 PM
    Answer

    Hi,

    You can make use of add_shown and add_hidden client event to achieve it.

    Please try the below code( 'ModalPopupBehavior' is BehaviorID of ModalPopup Control):

            function pageLoad(sender,e)
            {
                $find('ModalPopupBehavior').add_shown(cpc);
                $find('ModalPopupBehavior').add_hidden(cpe)
            }
            function cpc(ev)
            {
                objFlash = document.getElementById('flashObject');
    objFlash.style.display = 'none';
    } function cpe(ev) { objFlash = document.getElementById('flashObject');
    objFlash.style.display = 'block';
    }
     

    Vince Xu
    Microsoft Online Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
  • Re: Modelpopup showing behind flash animation, any solution?

    08-06-2008, 12:01 AM
    Answer
    • Member
      18 point Member
    • cmshafi
    • Member since 07-13-2008, 8:45 AM
    • Posts 10

    Great, it works! 

    Thanks Vince

     

  • Re: Modelpopup showing behind flash animation, any solution?

    07-16-2009, 6:30 AM
    • Member
      17 point Member
    • Jalias
    • Member since 06-14-2006, 11:58 AM
    • Posts 11

    In case anyone else has this same issue, I wanted to post an alternative solution that was better for our situation.  Simply set the wmode parameter for Flash to transparent. Examples:

    TRADITIONAL EMBED:
    <param name="wmode" value="transparent" />

    AC_FL_RUNCONTENT:
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','900','height','1000','title','test','src','animation','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','animation','wmode','transparent' );

    SWFObject:
    swfobject.embedSWF("animation.swf", "animation", "300", "120", "9.0.0","expressInstall.swf", '', {wmode:"transparent"}, {id:"animation",name:"animation"});

     

Page 1 of 1 (6 items)