Contact Sales: +1-888-365-2779
Community & Support
Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Splitter > Flash + Firefox + mouse events problem
RadControls for ASP.NET are no longer supported (see this page for reference). In case you have inquiries about the Telerik ASP.NET AJAX controls, post them in the pertinent ASP.NET AJAX forums.

Not answered Flash + Firefox + mouse events problem

Feed from this thread
  • alpal111 avatar

    Posted on Nov 19, 2007 (permalink)

    I have a problem.

    <form id="form2" runat="server" style="height:100%">  
     
    <iframe height="0" width="0"></iframe> <!-- if i add this line it fixes my buttons in the top pane with the flash swf file, if i remove it in things break. why? --> 
     
    <radspl:RadSplitter   
        orientation="Horizontal"    
        ID="RadSplitter1"   
        runat="server"   
        Height="100%"   
        Width="100%">  
     
        <radspl:RadPane   
        ID="RadPane_Mec"   
        runat="server"   
        Width="100%"   
        Height="100%" > 
     
        <% // some code for generating the swf parameters  
        //Compute what parameters go on the movie URL  
        string swfParams = "showTitleDetails=true&dimlineMaxHistory=10&enableLanguageSelect=true"; //&disableCookie=chart 
        //Response.Write("Params: " + Request.Form + " or " + Request.QueryString);  
          
        if (Request.Form.Count > 0) {  
            //Response.Write("Form: " + Request.Form);  
            for (int i = 0; i < Request.Form.Count; i++) {  
            //Response.Write("<p>" + Request.Form.Keys.Get(i) + " = " + Request.Form.GetValues(i)[0].ToString() + "</p>");  
            swfParams += (swfParams == "" ? "" : "&") + Request.Form.Keys.Get(i) + '=' + Server.UrlEncode(Request.Form.GetValues(i)[0].ToString());  
            }  
        } else if (Request.QueryString.Count > 0) {  
            //Response.Write("QueryString: " + Request.QueryString);  
            for (int i = 0; i < Request.QueryString.Count; i++) {  
            //Response.Write("<p>" + Request.QueryString.GetKey(i) + " = " + Request.QueryString.GetValues(i)[0].ToString() + "</p>");  
            swfParams += (swfParams == "" ? "" : "&") + Request.QueryString.GetKey(i) + '=' + Server.UrlEncode(Request.QueryString.GetValues(i)[0].ToString());  
            }  
        }  
        else   
        {  
            string DJ_SWF_Params;  
            if (Session["DJ_SWF_Params"]!=null)   
            DJ_SWF_Params = Session["DJ_SWF_Params"].ToString();  
            else   
            DJ_SWF_Params = "";  
              
            if ( DJ_SWF_Params != "" && DJ_SWF_Params != swfParams )  
            {  
            swfParams = Session["DJ_SWF_Params"].ToString();    
            }  
        }  
     
        // append flashvars for emailed views  
        if (Request.QueryString["type"] == "email") {  
            swfParams += "&applicationType=matrix";  
        }  
           
        swfParams += "&rnid=djMECexplorer";  
        Session["DJ_SWF_Params"] = swfParams;   
        %> 
        <div id="mec" style="width: 100%; height: 100%;">  
        <script type="text/javascript">  
            var mec = new FlashObject('<%=Application["ExplorerSWF"]%>', '100%', '100%', 'flaMECexplorer');  
            mec.setFlashVars("<%=swfParams%>");  
            mec.write();  
        </script> 
        </div> 
        </radspl:RadPane> 
     
        <radspl:RadPane   
        ID="RadPane_Manager"   
        runat="server"   
        Height="285px"   
        Width=""   
        ContentUrl="./thresholdingtest/test.aspx"   
        MinHeight="285" MaxHeight="285" Index="0" Collapsed="True" OnInit="RadPane_Manager_Init" Scrolling="None">  
        </radspl:RadPane> 
     
    </radspl:RadSplitter> 
     
    </form> 
    My page uses a splitter.  The top pane has a flash application. The bottom pane a .aspx page.

    Any rollover events in my flash movie are instantly aborted/cancelled/followed by a rollout event/whatever such that I cannot easily activate any button controls in in my flash application.

    If I embed just the swf into a seperate <iframe/> tag, outside the rasplitter controls, the buttons work so maybe it's not the iframe aspect of the splitter control.

    If I take the swf out of the splitter, and just leave it on the page it seems to work, but then my bottom radpane cannot be expanded.

    Everything works in IE and everything works in FF if I don't have my flash movie in the telerik created radsplitter.

    Is there a way around this behaviour or do I have to get rid of my radsplitter and find some other way to dock, with show/hide, an external aspx page?

    I just figured out that if I add an empty iframe to my form, just above the radsplitter code it fixes my flash movie buttons.  Why?

    Note: if i throw in a regular quickly created swf with just a single rollover button the button works.  This suggest it something to do with my swf, or how I'm embedding it, but I'd still like to understand why the empty <iframe/> fixes it.


    Al Pieroway


  • Petio Petkov Petio Petkov admin's avatar

    Posted on Nov 22, 2007 (permalink)

    Hello,

    I am afraid we are not aware for such problem. Can you please open a new support ticket and send us simple running project (with bin and RadControls directories) where we can observe it? Once we receive it, we will do our best to help you.



    All the best,
    Petio Petkov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Splitter > Flash + Firefox + mouse events problem