View Full Version : EOLAS : click to activate?
colfaxrev
04-20-2006, 01:28 AM
since when do people have to click on flash objects to activate them?
is there a javascript work around?
Yeah...here
http://www.actionscript.org/forums/showthread.php3?t=102101
Flash Gordon
04-20-2006, 01:40 AM
This topic needs to be a sticky for 3 months! There are too many threads about it. Nopebody searches. Maybe a big flash banner would help.
One centralized thread will ALL the work arounds is all that is need. colfaxrev, with 200+ post, do a small search you'll find the answer. BTW, i wasn't yelling at you. I still think this topic needs to be sticked.
(EDIT: boy i need to slow down and explain myself better when I post. colfaxrev, once again I wasn't yelling at you :) ).
The problem with that is people are posting in different categories..so chances are they wouldnt find it...
Flash Gordon
04-20-2006, 01:47 AM
yeah, but like a super sticky. This effects every FP version. It would be nice, even for my sake, to have everything centralize. As there are several work around MM has one (which i haven't used).
oldnewbie
04-20-2006, 02:50 AM
This one workaround works fine & dandy...
http://blog.deconcept.com/flashobject/
billingsgate
04-20-2006, 04:08 AM
Hooray! Adobe has just released a new Flash extension which easily solves the problem. For those of us who are too baffled by customizing Java script files, this extension enables the user to publish an "Active Content" HTML page AND the required *.js file.
Everyone should install it:
Active Content Extension Update (http://www.macromedia.com/support/flash/downloads.html#flash8)
Flash Gordon
04-20-2006, 04:41 AM
Hooray! ....
GREAT POST!
oldnewbie
04-20-2006, 06:11 AM
Well that's fine and dandy for those on Flash 8... But what about those still on MX2004, MX only, Flash 5? :eek:
billingsgate
04-20-2006, 07:09 AM
Actually, it's just an Extension installed through the Extension Manager. It's quite possible that it works in Flash MX and MX2004. Someone should test that. The worst that can happen is that you just need to uninstall the extension, since this doesn't update any of the Flash application files.
This thing has been out for a week and it hasn't been publicized by Macromedia, and there isn't even a link to it from their Updates page. I found it through someone's Flash blog. It's possible that they're still working on updates for earlier versions and will officially announce it when those are ready.
acolyte
04-21-2006, 01:15 PM
Well that's fine and dandy for those on Flash 8... But what about those still on MX2004, MX only, Flash 5? :eek:
I agree Old Newbie this flashobject embedd is pretty awesome
YOu can easy extend it so it fits to your needs
In my setup below you can also set Menu to false to block the mm contexmenu
/**
* FlashObject v1.2.3: Flash detection and embed - http://blog.deconcept.com/flashobject/
*
* FlashObject is (c) 2005 Geoff Stearns and is released under the MIT License:
* http://www.opensource.org/licenses/mit-license.php
*
*/
if(typeof com == "undefined") var com = new Object();
if(typeof com.deconcept == "undefined") com.deconcept = new Object();
if(typeof com.deconcept.util == "undefined") com.deconcept.util = new Object();
if(typeof com.deconcept.FlashObjectUtil == "undefined") com.deconcept.FlashObjectUtil = new Object();
com.deconcept.FlashObject = function(swf, id, w, h, q, ver, c, m, useExpressInstall, redirectUrl, detectKey){
this.DETECT_KEY = detectKey ? detectKey : 'detectflash';
this.skipDetect = com.deconcept.util.getRequestParameter(this.DETECT _KEY);
this.params = new Object();
this.variables = new Object();
this.attributes = new Array();
if(swf) this.setAttribute('swf', swf);
if(id) this.setAttribute('id', id);
if(w) this.setAttribute('width', w);
if(h) this.setAttribute('height', h);
if(q)this.addParam('quality', q);
if(ver) this.setAttribute('version', new com.deconcept.PlayerVersion(ver.toString().split(".")));
if(c) this.addParam('bgcolor', c);
if(m) this.addParam('menu', m);
this.setAttribute('redirectUrl', '');
if(redirectUrl) this.setAttribute('redirectUrl', redirectUrl);
if(useExpressInstall) {
// check to see if we need to do an express install
var expressInstallReqVer = new com.deconcept.PlayerVersion([6,0,65]);
var installedVer = com.deconcept.FlashObjectUtil.getPlayerVersion();
if (installedVer.versionIsValid(expressInstallReqVer) && !installedVer.versionIsValid(this.getAttribute('ve rsion'))) {
this.setAttribute('doExpressInstall', true);
}
} else {
this.setAttribute('doExpressInstall', false);
}
}
com.deconcept.FlashObject.prototype.setAttribute = function(name, value){
this.attributes[name] = value;
}
com.deconcept.FlashObject.prototype.getAttribute = function(name){
return this.attributes[name];
}
com.deconcept.FlashObject.prototype.getAttributes = function(){
return this.attributes;
}
com.deconcept.FlashObject.prototype.addParam = function(name, value){
this.params[name] = value;
}
com.deconcept.FlashObject.prototype.getParams = function(){
return this.params;
}
com.deconcept.FlashObject.prototype.getParam = function(name){
return this.params[name];
}
com.deconcept.FlashObject.prototype.addVariable = function(name, value){
this.variables[name] = value;
}
com.deconcept.FlashObject.prototype.getVariable = function(name){
return this.variables[name];
}
com.deconcept.FlashObject.prototype.getVariables = function(){
return this.variables;
}
com.deconcept.FlashObject.prototype.getParamTags = function(){
var paramTags = ""; var key; var params = this.getParams();
for(key in params) {
paramTags += '<param name="' + key + '" value="' + params[key] + '" />';
}
return paramTags;
}
com.deconcept.FlashObject.prototype.getVariablePai rs = function(){
var variablePairs = new Array();
var key;
var variables = this.getVariables();
for(key in variables){
variablePairs.push(key +"="+ variables[key]);
}
return variablePairs;
}
com.deconcept.FlashObject.prototype.getHTML = function() {
var flashHTML = "";
if (navigator.plugins && navigator.mimeTypes && navigator.mimeTypes.length) { // netscape plugin architecture
if (this.getAttribute("doExpressInstall")) { this.addVariable("MMplayerType", "PlugIn"); }
flashHTML += '<embed type="application/x-shockwave-flash" src="'+ this.getAttribute('swf') +'" width="'+ this.getAttribute('width') +'" height="'+ this.getAttribute('height') +'" id="'+ this.getAttribute('id') + '" name="'+ this.getAttribute('id') +'"';
var params = this.getParams();
for(var key in params){ flashHTML += ' '+ key +'="'+ params[key] +'"'; }
pairs = this.getVariablePairs().join("&");
if (pairs.length > 0){ flashHTML += ' flashvars="'+ pairs +'"'; }
flashHTML += '></embed>';
} else { // PC IE
if (this.getAttribute("doExpressInstall")) { this.addVariable("MMplayerType", "ActiveX"); }
flashHTML += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+ this.getAttribute('width') +'" height="'+ this.getAttribute('height') +'" id="'+ this.getAttribute('id') +'">';
flashHTML += '<param name="movie" value="' + this.getAttribute('swf') + '" />';
var tags = this.getParamTags();
if(tags.length > 0){ flashHTML += tags; }
var pairs = this.getVariablePairs().join("&");
if(pairs.length > 0){ flashHTML += '<param name="flashvars" value="'+ pairs +'" />'; }
flashHTML += '</object>';
}
return flashHTML;
}
com.deconcept.FlashObject.prototype.write = function(elementId){
if(this.skipDetect || this.getAttribute('doExpressInstall') || com.deconcept.FlashObjectUtil.getPlayerVersion().v ersionIsValid(this.getAttribute('version'))){
if(document.getElementById){
if (this.getAttribute('doExpressInstall')) {
this.addVariable("MMredirectURL", escape(window.location));
document.title = document.title.slice(0, 47) + " - Flash Player Installation";
this.addVariable("MMdoctitle", document.title);
}
document.getElementById(elementId).innerHTML = this.getHTML();
}
}else{
if(this.getAttribute('redirectUrl') != "") {
document.location.replace(this.getAttribute('redir ectUrl'));
}
}
}
/* ---- detection functions ---- */
com.deconcept.FlashObjectUtil.getPlayerVersion = function(){
var PlayerVersion = new com.deconcept.PlayerVersion(0,0,0);
if(navigator.plugins && navigator.mimeTypes.length){
var x = navigator.plugins["Shockwave Flash"];
if(x && x.description) {
PlayerVersion = new com.deconcept.PlayerVersion(x.description.replace(/([a-z]|[A-Z]|\s)+/, "").replace(/(\s+r|\s+b[0-9]+)/, ".").split("."));
}
}else if (window.ActiveXObject){
try {
var axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
PlayerVersion = new com.deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));
} catch (e) {}
}
return PlayerVersion;
}
com.deconcept.PlayerVersion = function(arrVersion){
this.major = parseInt(arrVersion[0]) || 0;
this.minor = parseInt(arrVersion[1]) || 0;
this.rev = parseInt(arrVersion[2]) || 0;
}
com.deconcept.PlayerVersion.prototype.versionIsVal id = function(fv){
if(this.major < fv.major) return false;
if(this.major > fv.major) return true;
if(this.minor < fv.minor) return false;
if(this.minor > fv.minor) return true;
if(this.rev < fv.rev) return false;
return true;
}
/* ---- get value of query string param ---- */
com.deconcept.util.getRequestParameter = function(param){
var q = document.location.search || document.location.href.hash;
if(q){
var startIndex = q.indexOf(param +"=");
var endIndex = (q.indexOf("&", startIndex) > -1) ? q.indexOf("&", startIndex) : q.length;
if (q.length > 1 && startIndex > -1) {
return q.substring(q.indexOf("=", startIndex)+1, endIndex);
}
}
return "";
}
/* add Array.push if needed (ie5) */
if (Array.prototype.push == null) { Array.prototype.push = function(item) { this[this.length] = item; return this.length; }}
/* add some aliases for ease of use / backwards compatibility */
var getQueryParamValue = com.deconcept.util.getRequestParameter;
var FlashObject = com.deconcept.FlashObject;
oldnewbie
04-21-2006, 03:10 PM
Will check it out... Thanks for sharing!
mrNewt
04-21-2006, 04:50 PM
sweet :). I've already done the update :d. thx for the post.
I agree Old Newbie this flashobject embedd is pretty awesome
YOu can easy extend it so it fits to your needs
In my setup below you can also set Menu to false to block the mm contexmenu
Acolyte,
that code looks pretty intense! Could you explain it a little bit? I'm very interested in the express install and flashobject extensions. I've got both working on much less code, but I get the feeling that your code is more portable across different browsers and Flash versions.
I've been able to use the flashobject to have multiple entry sites into one flash page, which is useful, I think, for indexing on search engines.
Main Entry point: http://pw.engl.uvic.ca/~pbaldwin/baldwin/
Other entry points (page redirect to the main page with params to direct the flash movie):
http://pw.engl.uvic.ca/~pbaldwin/baldwin/maps
http://pw.engl.uvic.ca/~pbaldwin/baldwin/rss
This enables the back/forward buttons on the browser to work, and bookmarks that would actually work.
Just wondering if having multiple entry points using this technique is beneficially to search indexing??
acolyte
04-24-2006, 02:08 PM
Well, this is the embedcode to use with the html page ,
<script type="text/javascript">
// swf embedding with flashobject
// set name of your swf file, required height and width, FP version and background color
// movie ID ("myMovie") is hardcoded in staeNav.js and stateNav.vbs, so do not change if possible
var fo = new FlashObject("stateNav.swf", "myMovie", "728", "500", "low", "top", 7, "#000000", "false");
fo.addVariable('lcId', uid);
// get page var if deeplinking
var o=new Object();
o=getParams();
for(var i in o){
fo.addVariable(i, o[i]);
}
fo.addVariable("isMSIE", [is_pc_ie]);
// movie ID for flash sendvars
fo.addVariable("movieid", "myMovie");
fo.addVariable("siteName", siteName);
fo.write("flashcontent");
</script>
this is originally the flashobjectembedd file i taken from the deeplinking Bookmarking Example providet by Blixxt i just extendet it with the feature to lock the MM contexmenu.
i think it works something like / js variables getting set in the Html
/
the flashobject is concatenating the needed embed Code dynamical with the before set attributes and params to any specific Browser needs.
as described in the link providet above from old Newbie
greets aco
CyanBlue
04-25-2006, 04:40 PM
Hey, acolyte... Do you have a live link somewhere where I can check how this right click menu stuff works??? Thanks... :)
acolyte
04-25-2006, 05:37 PM
Hey, acolyte... Do you have a live link somewhere where I can check how this right click menu stuff works??? Thanks... :)
Howdy CyanBlue,
yes you can see it in action @ my site ( experimental Buildingsite :rolleyes: )
go >> www.mat3d.com
www.mat3d.com/flashobject.js
as you can see the contexmenu is muted and the mute is done by using flashobject
extending it was easy as pie
( btw does anybody know why my posts doesnt count anymore as you see @ the starting of the thread i got 237 Posts and this Post it is just the same / why ??)
greets aco
Because in all your posts, it only shows your current post count. Assuming I understood your correctly.
acolyte
04-25-2006, 07:20 PM
Because in all your posts, it only shows your current post count. Assuming I understood your correctly.
thnx alot Cota
yes you understood correctly :)
CyanBlue
04-27-2006, 04:10 AM
Um... I do see the contect menu in the Flash file that's in the middle of the screen... Is it because I am using IE7 beta version???
acolyte
04-27-2006, 09:11 AM
Um... I do see the contect menu in the Flash file that's in the middle of the screen... Is it because I am using IE7 beta version???
mmmhh thats Murphys Law it worked and then a week ago i changed
something small and now it dont i will take a look @ it if i got time/ i got to work right now / but does this klick to activate issue already exist ?
CyanBlue
04-27-2006, 11:27 PM
I just checked it with IE6/WXPSP2/FP7 and I do not see the acitvate message but I do see the context menu...
acolyte
04-28-2006, 12:08 AM
Yes thats true as i said ,
In Firefox it works :) in Ie not
i think the Reason is that in Ie the menu='false' needs to be in the embed tag too .
In Firefox it is enough if you just include a parameter.
btw do you know a working solution for f8 embeding Fonts for dynamic textfields / i cannot get it working / in Flash Mx 2004 it works in Flash 8 not
thats pretty anoying because i liked the effect and now it doesnt compile anymore.
well it compiles but as i set embed font / also by code the txtfield doesnt show up anymore .
This worked just nicely in Flash Mx 2004
http://www.actionscript.org/forums/showthread.php3?p=428673#post428673
thnx in advantage
m@
mrNewt
04-28-2006, 03:49 PM
Ok I have a small problem. Maybe i'm doing something wrong, so please help :).
When I add teh flash using the followings everything works nice and smooth:
<script language="javascript">
var fo = new FlashObject("test.swf", "mymovie", "650", "500", "7", "#336699");
fo.write("test");
</script>
but when I add the followings parameters ... my flash file doesn't display on the html page:
<script language="javascript">
var fo = new FlashObject("test.swf", "mymovie", "650", "500", "7", "#336699");
so.addParam("quality", "high");
so.addParam("loop", "false");
so.addParam("menu", "false");
so.addParam("scale", "exactfit");
fo.write("test");
</script>
Anyone will care to help me out regarding this?
Thanks in advance!
acolyte
04-28-2006, 05:24 PM
Ok I have a small problem. Maybe i'm doing something wrong, so please help :).
When I add teh flash using the followings everything works nice and smooth:
Thanks in advance!
Hi mrNewt,
if you compare
my embeddrow with yours
( i includet all the params in this way )
var fo = new FlashObject("file.swf", "myMovie", "728", "500", "low", "top", 7, "#000000", "false");
this was the only way to make it working
you just need to extend your flashobject.js then
com.deconcept.FlashObject = function(swf, id, w, h, q, ver, c, m, useExpressInstall, redirectUrl, detectKey){
this.DETECT_KEY = detectKey ? detectKey : 'detectflash';
this.skipDetect = com.deconcept.util.getRequestParameter(this.DETECT _KEY);
this.params = new Object();
this.variables = new Object();
this.attributes = new Array();
if(swf) this.setAttribute('swf', swf);
if(id) this.setAttribute('id', id);
if(w) this.setAttribute('width', w);
if(h) this.setAttribute('height', h);
if(q)this.addParam('quality', q);
if(ver) this.setAttribute('version', new com.deconcept.PlayerVersion(ver.toString().split(".")));
if(c) this.addParam('bgcolor', c);
if(m) this.addParam('menu', m);
this.setAttribute('redirectUrl', '');
all specs reefering to the fo come in here :
new FlashObject("file.swf", "myMovie", "728", "500", (quality)"low", (align)"top", (version) 7, (color)"#000000",(menu) "false");
hope this helps
mrNewt
04-28-2006, 09:09 PM
Damn this EOLA thing sucks so fcking badlly ...
Ok I have tried your thing and is not working. I'll try it a little bit later on to be sure everything is as it should - I'm a little bit in a hurry right now and maybe I did some stupid mistakes (even thou right now doesn't seems like I did).
One more question ... how do you do it the way they did it here: http://blog.deconcept.com/swfobject/ (basically that's what I was trying to do)?
And thatnks! I'll post again later on this evening.
-----------------------------------------------------------
Edit:
Ok I have tried it one more time adding your stuff, and it didn't really worked at all. :(
Here is the .js code that I was originally using. I s a little bit different from what you have (well is actually the blog.deconcept.com code):
/**
* FlashObject v1.3c: Flash detection and embed - http://blog.deconcept.com/flashobject/
*
* FlashObject is (c) 2006 Geoff Stearns and is released under the MIT License:
* http://www.opensource.org/licenses/mit-license.php
*
*/
if(typeof com == "undefined") var com = new Object();
if(typeof com.deconcept == "undefined") com.deconcept = new Object();
if(typeof com.deconcept.util == "undefined") com.deconcept.util = new Object();
if(typeof com.deconcept.FlashObjectUtil == "undefined") com.deconcept.FlashObjectUtil = new Object();
com.deconcept.FlashObject = function(swf, id, w, h, ver, c, useExpressInstall, quality, xiRedirectUrl, redirectUrl, detectKey){
if (!document.createElement || !document.getElementById) return;
this.DETECT_KEY = detectKey ? detectKey : 'detectflash';
this.skipDetect = com.deconcept.util.getRequestParameter(this.DETECT _KEY);
this.params = new Object();
this.variables = new Object();
this.attributes = new Array();
this.useExpressInstall = useExpressInstall;
if(swf) this.setAttribute('swf', swf);
if(id) this.setAttribute('id', id);
if(w) this.setAttribute('width', w);
if(h) this.setAttribute('height', h);
if(ver) this.setAttribute('version', new com.deconcept.PlayerVersion(ver.toString().split(".")));
this.installedVer = com.deconcept.FlashObjectUtil.getPlayerVersion(thi s.getAttribute('version'), useExpressInstall);
if(c) this.addParam('bgcolor', c);
var q = quality ? quality : 'high';
this.addParam('quality', q);
var xir = (xiRedirectUrl) ? xiRedirectUrl : window.location;
this.setAttribute('xiRedirectUrl', xir);
this.setAttribute('redirectUrl', '');
if(redirectUrl) this.setAttribute('redirectUrl', redirectUrl);
}
com.deconcept.FlashObject.prototype = {
setAttribute: function(name, value){
this.attributes[name] = value;
},
getAttribute: function(name){
return this.attributes[name];
},
addParam: function(name, value){
this.params[name] = value;
},
getParams: function(){
return this.params;
},
addVariable: function(name, value){
this.variables[name] = value;
},
getVariable: function(name){
return this.variables[name];
},
getVariables: function(){
return this.variables;
},
createParamTag: function(n, v){
var p = document.createElement('param');
p.setAttribute('name', n);
p.setAttribute('value', v);
return p;
},
getVariablePairs: function(){
var variablePairs = new Array();
var key;
var variables = this.getVariables();
for(key in variables){
variablePairs.push(key +"="+ variables[key]);
}
return variablePairs;
},
getFlashHTML: function() {
var flashNode = "";
if (navigator.plugins && navigator.mimeTypes && navigator.mimeTypes.length) { // netscape plugin architecture
if (this.getAttribute("doExpressInstall")) this.addVariable("MMplayerType", "PlugIn");
flashNode = '<embed type="application/x-shockwave-flash" src="'+ this.getAttribute('swf') +'" width="'+ this.getAttribute('width') +'" height="'+ this.getAttribute('height') +'"';
flashNode += ' id="'+ this.getAttribute('id') +'" name="'+ this.getAttribute('id') +'" ';
var params = this.getParams();
for(var key in params){ flashNode += [key] +'="'+ params[key] +'" '; }
var pairs = this.getVariablePairs().join("&");
if (pairs.length > 0){ flashNode += 'flashvars="'+ pairs +'"'; }
flashNode += '/>';
} else { // PC IE
if (this.getAttribute("doExpressInstall")) this.addVariable("MMplayerType", "ActiveX");
flashNode = '<object id="'+ this.getAttribute('id') +'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+ this.getAttribute('width') +'" height="'+ this.getAttribute('height') +'">';
flashNode += '<param name="movie" value="'+ this.getAttribute('swf') +'" />';
var params = this.getParams();
for(var key in params) {
flashNode += '<param name="'+ key +'" value="'+ params[key] +'" />';
}
var pairs = this.getVariablePairs().join("&");
if(pairs.length > 0) {flashNode += '<param name="flashvars" value="'+ pairs +'" />';}
flashNode += "</object>";
}
return flashNode;
},
write: function(elementId){
if(this.useExpressInstall) {
// check to see if we need to do an express install
var expressInstallReqVer = new com.deconcept.PlayerVersion([6,0,65]);
if (this.installedVer.versionIsValid(expressInstallRe qVer) && !this.installedVer.versionIsValid(this.getAttribut e('version'))) {
this.setAttribute('doExpressInstall', true);
this.addVariable("MMredirectURL", escape(this.getAttribute('xiRedirectUrl')));
document.title = document.title.slice(0, 47) + " - Flash Player Installation";
this.addVariable("MMdoctitle", document.title);
}
} else {
this.setAttribute('doExpressInstall', false);
}
if(this.skipDetect || this.getAttribute('doExpressInstall') || this.installedVer.versionIsValid(this.getAttribute ('version'))){
var n = (typeof elementId == 'string') ? document.getElementById(elementId) : elementId;
n.innerHTML = this.getFlashHTML();
}else{
if(this.getAttribute('redirectUrl') != "") {
document.location.replace(this.getAttribute('redir ectUrl'));
}
}
}
}
/* ---- detection functions ---- */
com.deconcept.FlashObjectUtil.getPlayerVersion = function(reqVer, xiInstall){
var PlayerVersion = new com.deconcept.PlayerVersion(0,0,0);
if(navigator.plugins && navigator.mimeTypes.length){
var x = navigator.plugins["Shockwave Flash"];
if(x && x.description) {
PlayerVersion = new com.deconcept.PlayerVersion(x.description.replace(/([a-z]|[A-Z]|\s)+/, "").replace(/(\s+r|\s+b[0-9]+)/, ".").split("."));
}
}else{
try{
var axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
for (var i=3; axo!=null; i++) {
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+i);
PlayerVersion = new com.deconcept.PlayerVersion([i,0,0]);
}
}catch(e){}
if (reqVer && PlayerVersion.major > reqVer.major) return PlayerVersion; // version is ok, skip minor detection
// this only does the minor rev lookup if the user's major version
// is not 6 or we are checking for a specific minor or revision number
// see http://blog.deconcept.com/2006/01/11/getvariable-setvariable-crash-internet-explorer-flash-6/
if (!reqVer || ((reqVer.minor != 0 || reqVer.rev != 0) && PlayerVersion.major == reqVer.major) || PlayerVersion.major != 6 || xiInstall) {
try{
PlayerVersion = new com.deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));
}catch(e){}
}
}
return PlayerVersion;
}
com.deconcept.PlayerVersion = function(arrVersion){
this.major = parseInt(arrVersion[0]) || 0;
this.minor = parseInt(arrVersion[1]) || 0;
this.rev = parseInt(arrVersion[2]) || 0;
}
com.deconcept.PlayerVersion.prototype.versionIsVal id = function(fv){
if(this.major < fv.major) return false;
if(this.major > fv.major) return true;
if(this.minor < fv.minor) return false;
if(this.minor > fv.minor) return true;
if(this.rev < fv.rev) return false;
return true;
}
/* ---- get value of query string param ---- */
com.deconcept.util = {
getRequestParameter: function(param){
var q = document.location.search || document.location.hash;
if(q){
var startIndex = q.indexOf(param +"=");
var endIndex = (q.indexOf("&", startIndex) > -1) ? q.indexOf("&", startIndex) : q.length;
if (q.length > 1 && startIndex > -1) {
return q.substring(q.indexOf("=", startIndex)+1, endIndex);
}
}
return "";
}
}
/* add Array.push if needed (ie5) */
if (Array.prototype.push == null) { Array.prototype.push = function(item) { this[this.length] = item; return this.length; }}
/* add some aliases for ease of use/backwards compatibility */
var getQueryParamValue = com.deconcept.util.getRequestParameter;
var FlashObject = com.deconcept.FlashObject;
notaflasher
09-24-2007, 05:59 AM
I'm sorry for dredging this back up, but I have searched and read every thread I could find about it and I have yet to get it to work.
Most threads about the "click to activate" issue get off topic very quickly and end up dead anyway.
Anyway...I've tried adding the adobe extension to flash8, as well as adding some guy's "special script". Neither have worked for me.
I'm sure that it's me doing something wrong, so hopefully I can get some assistance and not just a blind finger pointing me off in some direction. I have a couple websites that have an html page with an embedded .swf container.
<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></title>
<script type="text/javascript" src="Scripts/xpopup.js"></script>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>
<body bgcolor="#fffdf7">
<p align="center">
<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="919" height="561" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="container.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#fffdf7" /><embed src="container.swf" quality="high" bgcolor="#fffdf7" width="919" height="561" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','900','heigh t','100','src','lemon_footer_ad','quality','high', 'pluginspage','http://www.macromedia.com/go/getflashplayer','movie','lemon_footer_ad' ); //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=7,0,19,0" width="900" height="100">
<param name="movie" value="lemon_footer_ad.swf">
<param name="quality" value="high">
<embed src="lemon_footer_ad.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="900" height="100"></embed>
</object></noscript>
</p>
</body>
</html>
That is the html for one of the sites. When I "Apply Active Content Update" from the command menu in flash, it tells me that it's already been applied. But I'm still having to click to activate. Any help would be greatly appreciated.
Greg
atomic
09-24-2007, 06:15 AM
Have a link to one of these online?
notaflasher
09-24-2007, 01:44 PM
Have a link to one of these online?
Link (http://www.burgnet.com/ela/index.html)
This one hasn't been "tinkered" with yet.
Greg
atomic
09-24-2007, 02:13 PM
Have you tried the swfObject rather than Adobe's AC_RunActiveContent?
http://blog.deconcept.com/swfobject/
atomic
09-24-2007, 02:28 PM
Haven't uploaded all your files to my own server... Just the main ones... And used the swfObject to show you what I meant...
http://francoisgill.110mb.com/flash/Ela/ela2.html
notaflasher
09-25-2007, 04:26 AM
Have you tried the swfObject rather than Adobe's AC_RunActiveContent?
http://blog.deconcept.com/swfobject/
I downloaded it, unzipped it, looked at what was extracted, and scratched my head as to what I was supposed to do with it. I am a little overwhelmed by the different options as well as the deployment.
Edit:
Sorry, didn't see your last post before responding. I'm playing with your source atm and will reply back shortly. Thanks for looking at this for me.
Greg
Okay, I'm back from playing with your source. The problem is that your source doesn't mimic what's on the deconcept.com site. Additionally, you pointed to "flashobject.js". I have no idea what that is or where you got it.
I really would appreciate some instruction.
Greg
atomic
09-25-2007, 04:41 AM
Keep me posted... So I can take it down! Getting high on my bandwidth!
notaflasher
09-25-2007, 02:45 PM
Keep me posted... So I can take it down! Getting high on my bandwidth!
Okay, it's working now. It was much easier than I was making it. Your source confused me because you were using flashobject.js instead of swfobject.js. I just replaced one with the other, moved swfobject.js from the scripts folder into the root directory, added a parameter for transparency, added the expressinstall line, and dropped the expressinstall.swf also into the root directory.
It's much quicker when someone just tells you how to do it, but now that it's working, I'm glad you didn't. Most of what I've done has been through trial and error (emphasis on the error), but I've learned a lot more that way.
Thanks again for your help.
Greg
atomic
09-25-2007, 04:21 PM
Go to http://blog.deconcept.com/swfobject/ and download the swfobject.zip.
Extract the swfobject.js and upload it to your site's main directory...
Use the following to embed your movie in a new .html...
<p>
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type" /><style type="text/css">
<!--
body {
background-image: url(bg6.gif);
}
--></style></p>
<center><br />
<br />
<script type="text/javascript" src="swfobject.js"></script>
<div id="flashcontent">This text is replaced by the Flash movie.</div>
<script type="text/javascript">
var fo = new SWFObject("newela8.swf", "mymovie", "975", "667", "8", "#333333");
fo.write("flashcontent");
</script></center>
You're done!
atomic
09-25-2007, 04:23 PM
Oh... And I'll most likely steal your ladybug.swf to use on my own movie! ;)
CyanBlue
09-25-2007, 04:26 PM
Google with 'swfobject video tutorial' and there are plenty video tutorials that guide you step by step... ;)
Yup... That ladybug is a cutie... ;)
atomic
09-25-2007, 04:33 PM
Do you really need a video tutorial when Geoff Stearns cleary explains it at the top of the swfobject page...
8 lines of actionscript can't be that hard to copy & paste! :rolleyes:
CyanBlue
09-25-2007, 04:46 PM
Every bit helps if you are confused... ;)
notaflasher
09-28-2007, 06:04 PM
Thanks for the props on the ladybug. I drew her from scratch and coded her movements and AI myself. That was a lot of work and frustration, but I'm pretty proud of her.
Atomic, be warned that the version you got is not the final release. Your version has a "bug" where she will resize one dimension without respect to the other. She will get distorted at times. Additionally, that version also doesn't have the final "grab and place" code finalized. You can reposition her, but if you grab her while in flight, she will lock her destination variables and stick to your mouse forever.
Just a little FYI.
Greg
atomic
09-28-2007, 07:05 PM
So when are you going to post a link to your final version, so I can grab it from there? :cool:
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.