Load SWF Content Js on Button Clik
<p>I have an JS function in my page and when the page is load, my sfw content is loading normaly, I have added the ButtonClienClick to call my JS Function to show the div that contain my SWF content, but when the button click is fired my swf do not load. Any sugestion to load this content on button click?</p>

<pre><code>    function ShowDialogLoading()
    {
        $('#example').flash(
            { 
                src: 'Img/banner_aguarde.swf',
                width: 902,
                height: 320
            }
        );   
        $("#example").dialog({
            create: function (event, ui) {
                $(".ui-widget-header").hide();
                $(".ui-dialog-content").css("padding","0px");
            },
            modal: true,
            title: 'Pagamento Pré-Pago',
            resizable: false,
            draggable: false, 
            width: 'auto',
            height: 'auto' 
        });                      
    } 


 &lt;asp:Button ID="btnProximoPasso" CssClass="form-button" OnClientClick="ShowDialogLoading()" runat="server" Text="Próximo Passo"
                            OnClick="btnProximoPasso_Click" /&gt;
</code></pre>
