Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Active Content Fixed In IE, But Now Firefox Cannot Print...



I have used javascript fix from Adobe web site to go around the IE "click here to activate this control" issue.

http://www.adobe.com/devnet/activeco...devletter.html

Now my problem lies when I tried to print the web page from Firefox, it shows the javascript code instead of a screenshot of the flash movie.

Is there a way around so that the page will print fine in both Firefox/IE, and also Active Control activation will be fixed?

or am I doing something wrong?

Thank you so much for all the help in advance!



ActionScript.org Forums > Flash General Questions > Flash 8 General Questions
Posted on: 05-08-2006, 10:59 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

[F8]Active Content Not Displaying In FireFox
Hi,

I have applied the Active Content fix using this generator fix.

I used this instead of the solution in the Sticky as i dont have access to all of the SWF files on the server that i am trying to ammend the fix to.

The generator works brilliant for IE7 as all the SWF objects no longer require a click to activate them, however the embedded SWF files do not show up at all in FireFox.

Does anybody know of a solution for this problem of Firefox not displaying the SWf files?

Here is an example of what the Generator does to the code:


Code:
<!-- InstanceBeginEditable name="Diagnostic" -->
<h2>Try this </h2>
<div id="diagnostic" >
<p>

<!--[if gte IE 6]><script language="javascript">document.write("<NOSCRIPT class=clickfix><OBJECT style="display:none">"); </script>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="500" height="520">
<param name="movie" value="media/iq_diag_bg_500.swf">
<param name="quality" value="high">
<embed src="media/iq_diag_bg_500.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="500" height="520"></embed>

</object>
<!--[if gte IE 6]></OBJECT></NOSCRIPT><![endif]-->
.
..
...
....
.....
//end of file

<script language="JScript" type="text/jscript" src="http://scripts.ediy.co.nz/scripts/ClickFix.js"></script>

Also, i am unable to edit the greyed out areas of the HTML code in Dreamweaver. Is there a way around this too?

thanks very much!

Adobe Active Content And Javascript Play Method Not Working On Firefox
I've got a page where I want to play a Flash movie when the user clicks on a button. I've got the Adobe Active Content scripts loaded to get around the IE problem.

On the button I've got the following Javascript code: First a function to get the Flash movie object, then one to play the movie.


Code:
function getFlashMovieObject(movieName)
{
if (window.document[movieName])
{
return window.document[movieName];
}
if (navigator.appName.indexOf("Microsoft Internet")==-1)
{
if (document.embeds && document.embeds[movieName])
return document.embeds[movieName];
}
else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
{
return document.getElementById(movieName);
}
}

function PlayFlashMovie()
{
var flashMovie=getFlashMovieObject("advert1");

flashMovie.Play();


}
Problem is this doesn't work in Firefox - it works in all the other browsers. If I remove the Active Content script and just embed the Flash code, it works fine, so it is something to do with Adobe's script.

"Apply Active Content Update" Message ONLY In Firefox
Here's my new website: www.ClampTools.com

When I view it in IE it looks great. When I view it in Firefox (like for the Press link) I get this error:
This page requires AC_RunActiveContent.js. In Flash run "Apply Active Content Update" in the Commands menu to copy AC_RunActiveContent.js to the HTML output folder.

I already did all of this and yes the js file is there, in the same directory. Any ideas why this isn't working?

Thanks!

Print Action Doesn't Print Content In The Centre Of Paper.
I am wondering if there is any option to control how the content of the frame can be printed from Flash projector of a loaded movie clip.
The "Print" button resides in the loaded movie clip. Here is the code:

on (release) {
print("_parent.quiz", "bmovie");
gotoAndPlay("#p");
}

Shouldn't be any problem. When I print this frame from the loaded movie itself it is printed well. It printed all content exactly in a centre of the page. However, when I try to print this frame of the loaded movie from the main movie it moves all content to the right bottom side of the paper.
Any advice is highly appreciated.
Thanks!

FireFox Not Loading External Files-FIXED (thx Todd LaJ)
Hi everyone.

FF isn't loading my (blah blah blah) into my main movie in PC or Mac....the site

Any ideas?

fyi- nothing complicated w/preloaders, etc. BUT trying to use Adobe's newest detection scripts. Go to my site and check out source code if you think it could be an issue.

Swf Is Invisible But Active In Firefox When Switched To 2.0.
I am up to my eyeballs in compatability problems. I have a Flash to JavaScript to Falsh app that I cant get to work in browsers other than IE.

To siplify my problem I just tried getting a javascript alert box to say hello. Still having problems I decided to use AS 2.0's commands.

Code:
ExternalInterface.call("alert", "test message")
I switch my project to use 2.0 since I was not before and....
IE does not show the alert dialog.
FF shows the alert dialog but hides the flash document.

PLEASE HELP! :'(

Background 100% / Content Fixed Width?
Hi,

Does anyone know how this is done? In the HTML the flash file is set to a width of 100% but the content doesn't resizes. It's great for dragging stuff around cause you have the complete browser window.

I've been trying this with 'System.capabilities.screenResolutionX' but that didn't worked out to well.

Any help would be great!

Thanks,

Vincent

Active Content
Hello,

Is there a code so that on IE7 there is no rectangle around the flash content?

Active Content Fix
Hi people.
Sorry to be a pain with what may be a silly question.
In Flash Professional (9) how do you get to the preferences to turn on the built in fix for dealing with those nasty borders and the popup message when you use Flash content on websites.........

I have had this problem for some time and I am sorry to be a dummy, but I just cannot work it out and it annoys me no end........

Thanks in advance
Glen Gibbs
Glen

Active Content
When I publish my flash sites and projects in Flash CS4 instead of writing the AC_RunActiveContent.js file like it had done before, flash is putting all of the Javascript code in my html file. So the when I upload my pages to the server I get the old "click to activate control" message in Opera and sometimes in IE.

Is this something new in CS4 to write all of the JS in the html file?

Please do not redirect me to the "Click to Activate" posts on Google Groups.

I am using Windows XP Pro.







Attach Code

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>test</title>
<script language="JavaScript" type="text/javascript">
<!--
//v1.7
// Flash Player Version Detection
// Detect Client Browser type
// Copyright 2005-2008 Adobe Systems Incorporated. All rights reserved.
var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;
function ControlVersion()
{
var version;
var axo;
var e;
// NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't in the registry
try {
// version will be set for 7.X or greater players
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
version = axo.GetVariable("$version");
} catch (e) {
}
if (!version)
{
try {
// version will be set for 6.X players only
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");

// installed player is some revision of 6.0
// GetVariable("$version") crashes for versions 6.0.22 through 6.0.29,
// so we have to be careful.

// default to the first public version
version = "WIN 6,0,21,0";
// throws if AllowScripAccess does not exist (introduced in 6.0r47)
axo.AllowScriptAccess = "always";
// safe to call for 6.0r47 or greater
version = axo.GetVariable("$version");
} catch (e) {
}
}
if (!version)
{
try {
// version will be set for 4.X or 5.X player
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
version = axo.GetVariable("$version");
} catch (e) {
}
}
if (!version)
{
try {
// version will be set for 3.X player
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
version = "WIN 3,0,18,0";
} catch (e) {
}
}
if (!version)
{
try {
// version will be set for 2.X player
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
version = "WIN 2,0,0,11";
} catch (e) {
version = -1;
}
}

return version;
}
// JavaScript helper required to detect Flash Player PlugIn version information
function GetSwfVer(){
// NS/Opera version >= 3 check for Flash plugin in plugin array
var flashVer = -1;

if (navigator.plugins != null && navigator.plugins.length > 0) {
if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;
var descArray = flashDescription.split(" ");
var tempArrayMajor = descArray[2].split(".");
var versionMajor = tempArrayMajor[0];
var versionMinor = tempArrayMajor[1];
var versionRevision = descArray[3];
if (versionRevision == "") {
versionRevision = descArray[4];
}
if (versionRevision[0] == "d") {
versionRevision = versionRevision.substring(1);
} else if (versionRevision[0] == "r") {
versionRevision = versionRevision.substring(1);
if (versionRevision.indexOf("d") > 0) {
versionRevision = versionRevision.substring(0, versionRevision.indexOf("d"));
}
}
var flashVer = versionMajor + "." + versionMinor + "." + versionRevision;
}
}
// MSN/WebTV 2.6 supports Flash 4
else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4;
// WebTV 2.5 supports Flash 3
else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3;
// older WebTV supports Flash 2
else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2;
else if ( isIE && isWin && !isOpera ) {
flashVer = ControlVersion();
}
return flashVer;
}
// When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available
function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision)
{
versionStr = GetSwfVer();
if (versionStr == -1 ) {
return false;
} else if (versionStr != 0) {
if(isIE && isWin && !isOpera) {
// Given "WIN 2,0,0,11"
tempArray = versionStr.split(" "); // ["WIN", "2,0,0,11"]
tempString = tempArray[1];// "2,0,0,11"
versionArray = tempString.split(",");// ['2', '0', '0', '11']
} else {
versionArray = versionStr.split(".");
}
var versionMajor = versionArray[0];
var versionMinor = versionArray[1];
var versionRevision = versionArray[2];
// is the major.revision >= requested major.revision AND the minor version >= requested minor
if (versionMajor > parseFloat(reqMajorVer)) {
return true;
} else if (versionMajor == parseFloat(reqMajorVer)) {
if (versionMinor > parseFloat(reqMinorVer))
return true;
else if (versionMinor == parseFloat(reqMinorVer)) {
if (versionRevision >= parseFloat(reqRevision))
return true;
}
}
return false;
}
}
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 = '';
if (isIE && isWin && !isOpera)
{
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 += '</object>';
}
else
{
str += '<embed ';
for (var i in embedAttrs)
{
str += i + '="' + embedAttrs[i] + '" ';
}
str += '> </embed>';
}
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":
case "id":
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 "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;
}
// -->
</script>
</head>
<body bgcolor="#ffffff">
<!--url's used in the movie-->
<!--text used in the movie-->
<!-- saved from url=(0013)about:internet -->
<script language="JavaScript" type="text/javascript">
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0',
'width', '550',
'height', '400',
'src', 'test',
'quality', 'high',
'pluginspage', 'http://www.adobe.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'test',
'bgcolor', '#ffffff',
'name', 'test',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 'test',
'salign', ''
); //end AC code
</script>
<noscript>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="550" height="400" id="test" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="test.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="test.swf" quality="high" bgcolor="#ffffff" width="550" height="400" name="test" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />
</object>
</noscript>
</body>
</html>

Active Content
I have a flash animation on a webpage and implemented the active content script that adobe creates (using dreamweaver). I have added the html tags for loop and menu both set to false, yet when i refresh the webpage the animation still loops and can get the menu.

Does anyone know a way of correcting this

Thanks

Embedding Active Content
In html I can call a status.ptz file which queries my webcamera software and returns it's state (busy, free, eta to free, who is in control)

I reviewed the embed commands but don't see how to call a file that returns data locally. I can generate a new page or push the info to a new frame but not report the data with my flash element (I tried _self).

I'm trying to rebuild this status element (which my predecessor built but didn't leave the original fla file)

http://64.172.31.250/testing/SR_Preset.html

Any one ever been down this road?

Sorry I just don't know the lingo so searching is kinda the needle in the haystack approach.

IE Active Content Crap
How can you have a page with flash content automatically play in IE without that lame yellow bar come up and block it? Please help.

[F8] Active X Content Updater - Help
Ok, I'm really having trouble with the "Click to activate" in IE and have searched the boards up and down for an easy solution. Everything I have tried has not worked, and so I just downloaded the Flash 8 Extension from Adobe, so "supposedly" all you have to do is click "Apply Active X Content Update" in the commands. This places the "ac_runactivecontent.js" file in the directory folder, and I'm supposed to be good to go. NOT!

Does this just not work, or is there something else I gotta do? Annoying.........

Active Content Issue: Ie
Is there an easier way of fixing the active content bounding box for flash in ie? I'm not finding the adobe tutorial very helpful here: http://www.adobe.com/devnet/activeco...devletter.html

Thanks for any help!

Active Content Extension...
i downloaded the extention for the active content update..(so you dont have to click on the flash to activate it on the page)

when i try to install it it says i need version 8 or greater and it will not be installed....i have Flash MX

any idea why?

Fix For IE Active Content Problem
Macromedia has just released a new Flash extension which easily solves the Active Content problem in Internet Explorer. For those of us who are too baffled by having to customize our own Java script files, this extension enables the user to publish an "Active Content" HTML page AND the required *.js file.

Here is the standalone installer for the ActiveX extension for Flash 8:

Active Content Extension Update

IE Restricting Active Content
I was wondering if someone can help. I'm making a web site with a little bit of Flash in it. I have it looking good, but what's annoying me is that when I view the web page, that bar on top of IE pops up saying it's restricting active content. I can't have that popping up everytime a page is viewed. I know you can turn this off in IE itself, but I don't want people to have to do that. There's got to be a way to not make that happen. Can anybody tell me what might be causing that? I have interactive buttons and animation, but I don't know what's doing that. I do know that when I visit web sites with Flash, this doesn't happen. Can anyone help? Thanks.

Active Content - A Different Approach
I've looked around the forums and the internet and have found some javascript code examples on how to get around the old Active Content problem where you have to click to activate the Flash file. But I don't see anything I recognize.
I'm fairly new to Flash, and the way I posted these swf to a website before was to insert some goofy old code that everyone used before this active content headache.

Part of theat old code simply had an obvious place to put the location and file name of the swf in there. So all I did each time was copy the code and paste in the name of my file and the different http//: location I was hosting it at.
This is important because I have access to store a file on my company site and to mess about on the webpage using HTML through a silly little dashboard-type deal they allow us to use - but I don't have the ability to store all of the wbpage content in the same place. I have to host some of it somehwere else.

But with all the new javascript code examples, I don't see where to insert the file name AND the location of the outside location where I'm hosting it. There's no simple "

Active Content Question
I asked this on the DW forums but nobody answered...
Hi, I've set my SWF to publish with the Adobe Active Content extension and have generated the .js file but I can't figure out how to now center my SWF on the page. Where do I go to add a table or is that not possible?

Active Content Update
I have downloaded and installed the active content update to publish my flash.
However I can't get the swf to be center aligned to the browser. I can get it left and right, but not center.
the part of the code that holds the details on the swf are as follows.... PLease note this is how it default publishs when you ask for it to be center aligned in the publish settings.

AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
'width', '950',
'height', '650',
'src', 'stage185',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'stage185',
'bgcolor', '#00ff00',
'name', 'stage185',
'menu', 'true',
'allowScriptAccess','sameDomain',
'movie', 'stage185',
'salign', 'center'
);

You would have thought that perhaps the
'align', 'middle',
should infact be
'align', 'center',
but this doesn't work. However if you change it to right it right aligns the movie.. how do you centeralise it?

Many thanks to any responders.

Flash Active Content
Hi,

I'm trying to automatically activate flash content on IE without having the user to click on it to activate. Right now the user needs to click once to activate the flash.

I tried the following solution and it doesn't work:

---------

1) Just below the last <object> in your HTML page, insert the following javascript:

<script type="text/javascript" src="ieupdate.js"></script>

2) Open a new document in Notepad or your HTML editor, and copy & paste the following content into it:

theObjects = document.getElementsByTagName("object");
for (var i = 0; i < theObjects.length; i++) {
theObjects[i].outerHTML = theObjects[i].outerHTML;
}

3) Save this file as ieupdate.js

4) Upload both files to your webserver, and the problem should be solved.


-------------

This the page where I have the flash:

http://absolutemediaworks.com/client...ocalmoves.html

Could someone please guide me to make this work.

Thanks

Regards.

CS4 Background Fills Browser, Movie Content Fixed Size
Hi,
here is what I want to achieve.
background image movie clip in my movie fills the browser window completely.
main content movie clip stays a fixed pixel size in the center of the window.
is it possible to achieve this?
mark

Active Content Update, Inline?
due to the new way IE handles flash
http://www.adobe.com/devnet/activeco...devletter.html
(god i am sick of microsoft ruining everything)

it seems we now need to include an external javascript file to properly load swfs in IE.

my current project is designing a template for ebay listings and ebay doesn't let you reference external files for auctions.

is there anyway to accomplish this with just inline javascript?

Active Content Update Download.... Where?
Hi,
I've been trying to sort a problem with my website where if viewed in IE then you have to click on the site to activate it b4 being able to use it.

I know how to fix it, got a video tutorial but at the start of this it tells you to download Active Content Update and install it (fm Adobe website).

I can't find the ruddy thing anywhere. I found some links that looked like it was it but once downloaded it appears they wernt the files I'm looking for. SOMEONE HELP PLEEEEASE!!

The Adobe Active Content Fix For IE Is Not Working
Here's the link to the HTML page where I'm having problems with the Flash SWF showing up in Internet Explorer:

http://www.pearlstreetgrilldenver.com/NewWebsite/

I am attempting to use Adobe's fix for Flash in IE so that the user doesn't have to click the SWF once before the rollovers and interactivity becomes active. So, I've created and uploaded the recommended Javascript file (flashhomepage.js) and added the javascript calling code to the HEAD area - <script src="flash.js" type="text/javascript"></script>. I also added the <noscript> tags around the Flash code in the HTML file. Problem is, I'm on a Mac - so I have to have a friend test it. It seems to be working fine in Firefox and Safari on my Mac -- but when I have my friend test it in her Internet Explorer, she says this occurs:

"nothing came up in the screen...just the wood background around a white screen and the menu at the bottom"

So basically, it's not displaying the Flash SWF file - Pearl_Street_Grill_Denver.swf - it's just showing the box area where the flash file should be playing. Any ideas on why this is occurring?

------------------------------------------
Here is my flashhomepage.js code:

function embedFlash()
{
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="728" height="453" id="Pearl_Street_Grill_Denver" align="middle">
');
document.write('<param name="allowScriptAccess" value="sameDomain" />
');
document.write('<param name="movie" value="button1.swf" />
');
document.write('<param name="quality" value="high" />
');
document.write('<param name="bgcolor" value="#ffffff" />
');
document.write('<embed src="Pearl_Street_Grill_Denver.swf" quality="high" bgcolor="#441c1c" width="728" height="453" name="Pearl_Street_Grill_Denver" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
');
document.write('</object>
');
}

------------------------------------------------


Any help is appreciated!

ActionScript And Active Content Detection
I apologize if this thread is miscategorized, but it seemed like a logical place to start.

I'm building an app where I need detect key strokes. The app works as expected in the Flash testing environment, but when I upload it to my server and test it the SWF requires an initial mouse press before any KeyboardEvent.KEY_DOWN events are fired. The document class listens for Event.ADDED_TO_STAGE and Event.ACTIVATE events before listening for the KeyboardEvent.KEY_DOWN event.

I'm on a Mac and have tested the remote file on both Firefox and Safari. Also, I've made sure to upload the AC_RunActiveContent.js file (although I think this only affects IE browsers.)

Here's a link to the file on my server if you want to see the behavior I've descibed in action:

http://www.mackstudiopro.com/flash/p...tTestDemo.html

And here's the simplified document class code I'm using:


PHP Code:




package{    import flash.display.*;    import flash.events.*;    import flash.ui.*;        public class ActiveContentTest extends Sprite    {        private var _shape:Shape;                public function ActiveContentTest()        {            // show/hide shape to prove event            // is actually happening            _shape = new Shape();            _shape.graphics.lineStyle();            _shape.graphics.beginFill(0,1);            _shape.graphics.drawCircle(0,0,50);            _shape.graphics.endFill();                        addEventListener(Event.ACTIVATE, onAddedToStageHandler);            addEventListener(Event.ADDED_TO_STAGE, onAddedToStageHandler);        }                private function onAddedToStageHandler(e:Event):void        {            stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDownHandler);            stage.addEventListener(KeyboardEvent.KEY_UP, onKeyUpHandler);        }                private function onKeyDownHandler(e:KeyboardEvent):void        {            addChild(_shape);        }                private function onKeyUpHandler(e:KeyboardEvent):void        {            removeChild(_shape);        }    }}







Thanks in advance.

Not Showing Active Content Because Its Flash
Hi all,
happy new year!!!i have a problem but i am not sure if it is because of flash or my pc.. i am building a page that have flash content, when i open the page,this message pops up To help protect security internet have protect this file from showing active content..., i know, in order to view it i need to allow blocked content, but is there any ways when i open this page on any pc it opens up without this security message?

ActionScript And Active Content Detection
I apologize if this thread is miscategorized, but it seemed like a logical place to start.

I'm building an app where I need detect key strokes. The app works as expected in the Flash testing environment, but when I upload it to my server and test it the SWF requires an initial mouse press before any KeyboardEvent.KEY_DOWN events are fired. The document class listens for Event.ADDED_TO_STAGE and Event.ACTIVATE events before listening for the KeyboardEvent.KEY_DOWN event.

I'm on a Mac and have tested the remote file on both Firefox and Safari. Also, I've made sure to upload the AC_RunActiveContent.js file (although I think this only affects IE browsers.)

Here's a link to the file on my server if you want to see the behavior I've descibed in action:

http://www.mackstudiopro.com/flash/p...tTestDemo.html

And here's the simplified document class code I'm using:


ActionScript Code:
package
{
    import flash.display.*;
    import flash.events.*;
    import flash.ui.*;
   
    public class ActiveContentTest extends Sprite
    {
        private var _shape:Shape;
       
        public function ActiveContentTest()
        {
            // show/hide shape to prove event
            // is actually happening
            _shape = new Shape();
            _shape.graphics.lineStyle();
            _shape.graphics.beginFill(0,1);
            _shape.graphics.drawCircle(0,0,50);
            _shape.graphics.endFill();
           
            addEventListener(Event.ACTIVATE, onAddedToStageHandler);
            addEventListener(Event.ADDED_TO_STAGE, onAddedToStageHandler);
        }
       
        private function onAddedToStageHandler(e:Event):void
        {
            stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDownHandler);
            stage.addEventListener(KeyboardEvent.KEY_UP, onKeyUpHandler);
        }
       
        private function onKeyDownHandler(e:KeyboardEvent):void
        {
            addChild(_shape);
        }
       
        private function onKeyUpHandler(e:KeyboardEvent):void
        {
            removeChild(_shape);
        }
    }
}

Thanks in advance.

Change Active Content Js Path
Were are the prefs to change the path location for the activecontent.js?
When i insert a flash element, adobe automatically place the js here:

<script src="DWConfiguration/ActiveContent/IncludeFiles/AC_RunActiveContent.js" type="text/javascript"></script>

but my js files are located here:
/user/js/

If this belongs in the DW section please move.

i know i can change afer it inserts this script code, but is there a pref just like how i can define my default image folder?































Edited: 02/21/2007 at 10:45:39 AM by steveswt

Active Content Flash Issue
Here's the link:
http://www.pearlstreetgrilldenver.com/NewWebsite/

I am attempting to use Adobe's fix for Flash in IE so that the user doesn't have to click the SWF once before the rollovers and interactivity becomes active. So, I've created and uploaded the recommended Javascript file (flashhomepage.js) and added the javascript calling code to the HEAD area - <script src="flash.js" type="text/javascript"></script>. I also added the <noscript> tags around the Flash code in the HTML file. Problem is, I'm on a Mac - so I have to have a friend test it. It seems to be working fine in Firefox and Safari on my Mac -- but when I have my friend test it in her Internet Explorer, she says this occurs:

"nothing came up in the screen...just the wood background around a white screen and the menu at the bottom"

So basically, it's not displaying the Flash SWF file - Pearl_Street_Grill_Denver.swf - it's just showing the box area where the flash file should be playing. Any ideas on why this is occurring?

Any help is appreciated!

Active Content Flash Issue
Here's the link:
http://www.pearlstreetgrilldenver.com/NewWebsite/

I am attempting to use Adobe's fix for Flash in IE so that the user doesn't have to click the SWF once before the rollovers and interactivity becomes active. So, I've created and uploaded the recommended Javascript file (flashhomepage.js) and added the javascript calling code to the HEAD area - <script src="flash.js" type="text/javascript"></script>. I also added the <noscript> tags around the Flash code in the HTML file. Problem is, I'm on a Mac - so I have to have a friend test it. It seems to be working fine in Firefox and Safari on my Mac -- but when I have my friend test it in her Internet Explorer, she says this occurs:

"nothing came up in the screen...just the wood background around a white screen and the menu at the bottom"

So basically, it's not displaying the Flash SWF file - Pearl_Street_Grill_Denver.swf - it's just showing the box area where the flash file should be playing. Any ideas on why this is occurring?

Any help is appreciated!

Wmode = Transparent And Active Content Fix
I'm trying to set the bg of a an swf to transparent...my problem is it doesnt seem to work when you impliment the Adobe version of the Active content fix (AC_RunActiveContent.js).

Has anyone figured out how to pull it off?

Re: Wmode = Transparent And Active Content Fix
"__icarus__" <webforumsuser@macromedia.com> wrote in
news:f49vcu$mdh$1@forums.macromedia.com:

> I'm trying to set the bg of a an swf to transparent...my problem is it
> doesnt seem to work when you impliment the Adobe version of the Active
> content fix (AC_RunActiveContent.js).
>
> Has anyone figured out how to pull it off?
>

use

'wmode', 'transparent'

Embedding A Swf Active Content Problem
I am trying to embed a .swf movie into my website, but I am having trouble writing the code. I want it to play in Firefox and Internet explorer, but I don't want people to have to click to allow active content. Please help!







Attach Code

<script type="text/javascript" src="swfobject.js"></script>
<style type="text/css">

body {
background-color: #000000;
font: .8em/1.3em verdana,arial,helvetica,sans-serif;
}

#info {
width: 400px;
overflow: auto;
}

#flashcontent {
border: solid 20px #000000;
width: 400px;
height: 300px;
float: left;
margin: 15px 20px;
}

</style>

<div id="flashcontent">

<strong>You need to upgrade your Flash Player</strong>


<script type="text/javascript">
// <![CDATA[

var so = new SWFObject("collins.swf", "sotester", "300", "300", "9", "#FF6600");
so.addVariable("flashVarText", "flashcontent");

// ]]>
</script>

<div id="info">

Active Content Removed? SWF Published
Hi
When I put my flash movie online I am getting a message at the top which reads 'Active content removed' - can anyone tell me how to get round this? I assume it is the organisation I work for -browser security settings...but what script would enable me to avert this?

Many thanks
Jude

Active Content Update Issue
I hope someone can help me! Here is the deal, I want to make a button that will open a blank page with a PDF document. I can get it to work with GETurl, but I cannot figure out how to apply active content update to the new page. It works fine on a Mac, but on a PC when the new window opens I get the warning messages and have to click the top bar and say "allow content etc.". Does anyone know what code I can use to tell the new html page to apply the active content update? Or can anyone tell me a better way to achive the same thing.

Thanks

Using Manual JS Active Content Fix, But Now How Do I Append The *.swf?
Hi all I am using this method to fix the Active Content issue,
http://www.adobe.com/devnet/activeco...pleoccurrences
but now I have come across a situation when I have to append the end of the .swf.

EG: Active content fix script. It does not use the extension .swf

<script type="text/javascript" >
AC_FL_RunContent(
'codebase', 'https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0',
'width', '764',
'height', '141',
'src', 'images/footer_graphic_1_about',
'quality', 'high',
'pluginspage', 'https://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'footer_graphic_1_about',
'name', 'images/footer_graphic_1_about',
'menu', 'true',
'allowScriptAccess','sameDomain',
'movie', 'images/footer_graphic_1_about',
'salign', ''
); //end AC code
</script>

I need to add .swf?<%response.write qs%>" to the images/footer_graphic_1_about, because I am passing a variable through the .swf.

Eg: images/footer_graphic_1_about.swf?intro=no

Any help would be great.

Drop-up Menu Over Active Content
hy to all

I have to put "drop-UP" flash menu on the bottom at the page. This was quite simple, but then I realized that the content under floating DIV containing flash covers my left menu and content. The area where this DIV is covering the content is inactive (links can't be clicked).



Is there a way that flash pops out of the DIV's frame. Here they made their drop downs above the content. As far I understand the code, the trick is in the Javascipt or Flash. I guess that those annoying full screen ads work same way.

I hope you understand and that you could help me out here.

cheers

ExternalInterface / Active Content Problems
I have been working with the ExternalInterface class to communicate with the browser.
I have had no problems with the call() method, but the addCallBack() method fails in FireFox when the Active content fix has been applied.

I tested this using the examples found at http://livedocs.macromedia.com/flash/8/ ... 02201.html

If I export flash and HTML, then add the form and javascript without running dreamweaver's active content fix, it works in IE and FF, but requires the "click to activate..." in IE. If I run the active content fix it works in IE and fails completely in FF.

Has anyone else had this problem? Is there a fix I don't know about?

--Rich

How To Prevent Restricted Active Content Warning
Recent browsers have an annoying "feature" that pops up a warning before allowing the user to run any scripts present on a web page. Is there something developers can do or code we can include to prevent this warning message (below) so that users do not have to click through several alert boxes to get to the content?

"To help protect your security, Internet Explorer has restricted this file from showing active content that could access your computer. Click here for options..."

Internet Explorer Blocks My Active Content
I am running Flash MX 2004 and I have made myself a little flash site, hooray. I am a bit of a noob, but my wife is a pro so when I ran into a problem I asked her and she couldn't figure it out. Any help would be great.

So I got my little Flash thing working fine inside of Flash but when I view my published .swf in Internet Explorer I get a ! shield thing underneath my navigation tools that indicates

"To help protect your security, Internet Explorer has restircted this file from showing active content that could access your computer. Click here for options..."

So I do and I get a dialog that will allow me to allow content. When I do, I then get:

"Allowing active content such as script and ActiveX controls can be useful, but active content might also harm your computer. Are you sure you want to let this file run active content?"

I click yes and it runs fine.

The thing is I look at flash ALL THE TIME on the web and have never seen this before, NOT ONCE, so it doesn't appear to be a blocking setting in IE - it has to be something set in Flash, right? Does anyone know what this is and how I can fix it - I really don't want this to come up on the site for the users!

Thanks in advance!!

Internet Explorer Blocks My Active Content
Internet Explorer Blocks My Active Content!

(I posted this in the Noob section, but I am not sure if this is a noob problem so I'm gonna post it here as well)

I am running Flash MX 2004 and I have made myself a little flash site, hooray. I am a bit of a noob, but my wife is a pro so when I ran into a problem I asked her and she couldn't figure it out. Any help would be great.

So I got my little Flash thing working fine inside of Flash but when I view my published .swf in Internet Explorer I get a ! shield thing underneath my navigation tools that indicates

"To help protect your security, Internet Explorer has restircted this file from showing active content that could access your computer. Click here for options..."

So I do and I get a dialog that will allow me to allow content. When I do, I then get:

"Allowing active content such as script and ActiveX controls can be useful, but active content might also harm your computer. Are you sure you want to let this file run active content?"

I click yes and it runs fine.

The thing is I look at flash ALL THE TIME on the web and have never seen this before, NOT ONCE, so it doesn't appear to be a blocking setting in IE - it has to be something set in Flash, right? Does anyone know what this is and how I can fix it - I really don't want this to come up on the site for the users!

Thanks in advance!!

Flash Content - Have To Click Twice To Make Active
I have a website that has flash buttons as tabs across the top of the page. It seems that whenever someone goes to the website from a pc....on rollover there is a box around the flash content and you have to click it first to make it active and then click it twice to go to wherever it is you were wanting to navigate.

Is there anything I can do so that one click is all it will take? Some viewers are confused...thinking that based on the one click it just isn't working.

Please help! To see for yourself www.jscbooks.com

Thanks
Danelle

And if it makes a difference I am using Flash 8 on a mac.

[F8] Run Active Content(swfobject) Fix Problem? Unusual..
Hi,

I'm having a problem with active content fix that Adobe provides.

Everything works OK in IE when i apply that fix,

BUT,

when I want to use my flash movie with some PHP variables (in order to prevent header flash animation to repeat everytime when user browses to other pages. provided below)
there is a problem.

What I mean i can fix that IE problem with that AC extension but when it's implemented in the page, animation plays again whenever user browses the sub-sections.

Here is the string? that my coder friend has added at the end of .swf ->

some.swf?anm=<?php echo($anm); ?> (this prevents the embedded menu movie to repeat when browsing through sub-pages.

And this is the link that i have d/led the AC fix.

http://kb.adobe.com/selfservice/view...e252&sliceId=1


I hope i'm clear about the problem.

THANK YOU ALL,

[CS3] Hide Context Menu With AC Run Active Content
Hello.
Does anyone know how to hide the context (right click) menu when using AC_RunActiveContent.js to embed an swf in HTML?

What params do I write in the source code to hide the menu the same way you would within the embed tags, as in

param name="menu" value="false" ?


Thanks.

Active Content Update And Aspx Pages
i understand that Microsoft recently released an update to Internet Explorer that changes how Internet Explorer handles some web pages that use interactive controls. i have downloaded the update and have included the java script on my site. and so far i have not had any issues getting this to work with any of my html pages. however, when i have any flash work on my aspx pages the grey bar still appers around my work.

what do i need to do to get my flash to work with aspx pages. any information will help. thanks.

Help: Confusing Problem With Active Content Update
Simple:

This works in IE AND Firefox - www.ClampTools.com
This works in IE, but NOT in Firefox - www.ClampTools.com

The 2nd page (along with a few others on the site) gives me the error message:
This page requires AC_RunActiveContent.js. In Flash run "Apply Active Content Update" in the Commands menu to copy AC_RunActiveContent.js to the HTML output folder.

It even seems to kind of ignore the style sheet.

I CANNOT figure this thing out. I've viewed the source alot of times. Any ideas? I've applied the Active Content update in the past with much success. In IE the whole site works fine. In Firefox some of the pages gives this error. It's confusing.

Thanks.

Error Active Content Wiht Flash 9
i have the next html that show the error in script:"'flvplayer' no is defined "
this flash is made in CS3.

please help me!








Attach Code

<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Client Detection Example</title>

</head>

<body>
<form id="Form1" method="post" runat="server" name="Form1">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="400" height="321" id="flvplayer" align="middle">
<param name="allowScriptAccess" value="always" />
<param name="movie" value="aperturas.swf" />
<param name="allowFullScreen" value="true" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="aperturas.swf" quality="high" bgcolor="#ffffff" width="400" height="321" name="flvplayer" align="middle" allowFullScreen="true" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</form>
</body>
</html>

Copyright © 2005-08 www.BigResource.com, All rights reserved