Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Aug 2009
    Posts
    8
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Question active controls menu frame visible in IE

    hi

    i have two flash movies i've created to be transparent and with inactive menu controls _ the page looks fine in Firefox _ but in IE6 (i can't upgrade) a frame appears around the area of the movie and the cursor comments "click here for menu controls" even though they aren't available when the user clicks

    the code for the page is below _ is there any way i can get rid of this frame?
    (like i said it doesn't appear in Firefox)

    many thanks _

    <div id="flashBar">

    <embed src="johnstock.swf"
    quality=best
    bgcolor=#E8E8E8
    width=760
    height=480
    wmode=transparent
    menu=false
    type="application/x-shockwave-flash"
    pluginspage="http://www.macromedia.com/shockwave/download /index.cgi?P1_Prod_Version=ShockwaveFlash">
    </embed>

    </div><! end flashBar>

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Post a link to your site please.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • Users who have thanked _Aerospace_Eng_ for this post:

    ifc_programmer (08-31-2009)

  • #3
    Senior Coder ckeyrouz's Avatar
    Join Date
    Jun 2009
    Location
    Montreal, Canada
    Posts
    1,044
    Thanks
    5
    Thanked 179 Times in 179 Posts
    This is a security issue in Microsoft IE.
    It was first introduced in IE7 then re-added into IE6 through security updates.

    Microsoft considers that running an applet, a flash or an embedded object executes an ActiveXObject and thus requires activation from the user.

    http://blog.deconcept.com/2005/12/15...-flash-plugin/

    However they say as well that you can bypass this security issue by embedding the object using javascript but this will make a problem for the users who do not have javascript enabled in their browsers.

    So you have to embed both ways:
    1. Javascript
    2. HTML embed oject inside the tag noscript


    Note that if you need to embed it using javascript you will need the file AC_RunActiveContent.js.

    This a sample on how you embed a flash object using javascript:
    Code:
    AC_FL_RunContent(
    			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
    			'flashvars','yourflashvars',
    			'width', '100%',
    			'height', '100%',
    			'src', 'path for source',
    			'quality', 'high',
    			'pluginspage', 'http://www.adobe.com/go/getflashplayer',
    			'align', 'middle',
    			'play', 'true',
    			'loop', 'true',
    			'scale', 'showall',
    			'wmode', 'transparent',
    			'devicefont', 'false',
    			'id', 'gallery',
    			'bgcolor', '#f7f7f7',
    			'name', 'gallery',
    			'menu', 'true',
    			'allowScriptAccess','sameDomain',
    			'movie', 'path to movie',
    			'salign', ''
    			);
    I have a problem with upload so here is the code of the file (you can find it on the web as well);
    Code:
    //v1.0
    //Copyright 2006 Adobe Systems, Inc. All rights reserved.
    function AC_AddExtension(src, ext)
    {
      if (src.indexOf('?') != -1)
        return src.replace(/\?/, ext+'?'); 
      else
        return src + ext;
    }
    
    function AC_Generateobj(objAttrs, params, embedAttrs) 
    { 
      var str = '<object ';
      for (var i in objAttrs)
        str += i + '="' + objAttrs[i] + '" ';
      str += '>';
      for (var i in params)
        str += '<param name="' + i + '" value="' + params[i] + '" /> ';
      str += '<embed ';
      for (var i in embedAttrs)
        str += i + '="' + embedAttrs[i] + '" ';
      str += ' ></embed></object>';
    
      document.write(str);
    }
    
    function AC_FL_RunContent(){
      var ret = 
        AC_GetArgs
        (  arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
         , "application/x-shockwave-flash"
        );
      AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
    }
    
    function AC_SW_RunContent(){
      var ret = 
        AC_GetArgs
        (  arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000"
         , null
        );
      AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
    }
    
    function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
      var ret = new Object();
      ret.embedAttrs = new Object();
      ret.params = new Object();
      ret.objAttrs = new Object();
      for (var i=0; i < args.length; i=i+2){
        var currArg = args[i].toLowerCase();    
    
        switch (currArg){	
          case "classid":
            break;
          case "pluginspage":
            ret.embedAttrs[args[i]] = args[i+1];
            break;
          case "src":
          case "movie":	
            args[i+1] = AC_AddExtension(args[i+1], ext);
            ret.embedAttrs["src"] = args[i+1];
            ret.params[srcParamName] = args[i+1];
            break;
          case "onafterupdate":
          case "onbeforeupdate":
          case "onblur":
          case "oncellchange":
          case "onclick":
          case "ondblClick":
          case "ondrag":
          case "ondragend":
          case "ondragenter":
          case "ondragleave":
          case "ondragover":
          case "ondrop":
          case "onfinish":
          case "onfocus":
          case "onhelp":
          case "onmousedown":
          case "onmouseup":
          case "onmouseover":
          case "onmousemove":
          case "onmouseout":
          case "onkeypress":
          case "onkeydown":
          case "onkeyup":
          case "onload":
          case "onlosecapture":
          case "onpropertychange":
          case "onreadystatechange":
          case "onrowsdelete":
          case "onrowenter":
          case "onrowexit":
          case "onrowsinserted":
          case "onstart":
          case "onscroll":
          case "onbeforeeditfocus":
          case "onactivate":
          case "onbeforedeactivate":
          case "ondeactivate":
          case "type":
          case "codebase":
            ret.objAttrs[args[i]] = args[i+1];
            break;
          case "width":
          case "height":
          case "align":
          case "vspace": 
          case "hspace":
          case "class":
          case "title":
          case "accesskey":
          case "name":
          case "id":
          case "tabindex":
            ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
            break;
          default:
            ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
        }
      }
      ret.objAttrs["classid"] = classid;
      if (mimeType) ret.embedAttrs["type"] = mimeType;
      return ret;
    }

  • Users who have thanked ckeyrouz for this post:

    ifc_programmer (08-31-2009)

  • #4
    New to the CF scene
    Join Date
    Aug 2009
    Posts
    8
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Smile many thanks

    thanks for getting back to me Aerospace Eng
    i really appreciate that

    sadly the website is only on my hard drive at the moment
    but my son is visiting tomorrow so hopefully be help me out

    thanks again

  • #5
    New to the CF scene
    Join Date
    Aug 2009
    Posts
    8
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Cool many thanks

    wow ckeyrouz _ awesome response
    and said with gratitude and respect

    i noticed the code you using is same as my son's on his website
    http://animatrix.thesolarnetwork.org/
    beautiful both visually and in its code

    he'll be here tomorrow
    and no doubt read through your code v quickly
    and help me understand everything that you've so kindly written

    thanks for taking the time to answer me in the way that you have
    (and for last time too)

    long winded response i guess
    but you deserved it ckeyrouz

    take care


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •