...

View Full Version : active controls menu frame visible in IE



ifc_programmer
08-30-2009, 10:07 PM
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>

_Aerospace_Eng_
08-31-2009, 12:34 AM
Post a link to your site please.

ckeyrouz
08-31-2009, 01:14 AM
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/internet-explorer-eolas-changes-and-the-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:

Javascript
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:

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);

//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;
}

ifc_programmer
08-31-2009, 04:07 AM
thanks for getting back to me Aerospace Eng
i really appreciate that :thumbsup:

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

ifc_programmer
08-31-2009, 04:16 AM
wow ckeyrouz _ awesome response
and said with gratitude and respect :thumbsup:

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum