En los parámetros del flash o FLV incluir
<param name="wmode" value="transparent">
Ahora un paso MUY IMPORTANTE para que funcione en todos los navegadores
Para que tambien funcione en Firefox y Opera, etc.incluir el codigo (wmode="transparent") dentro de la etiqueta EMBED, y quede algo así como:
<embed src="miflash.swf" wmode="transparent" quality="high" etc etc.
When the location you want is in the center of the map, copy and paste this code into the location bar of your browser and press enter
javascript:void(prompt('',gApplication.getMap().getCenter()));
This little trick allows a Flash movie (swf) to find out the URL of the page in which it's embedded. Javascript must be enabled for this to work. if the window.location.href.toString method doesn't return a value then ExternalInterface.call will return null. Same thing happens when Javascript is disabled.
// This little trick allows a Flash movie (swf) to find out the URL of the page in which it's embedded.
import flash.external.ExternalInterface;
var pageURL:String =
ExternalInterface.call('window.location.href.toString');
if toFixed is not defined
if (!num.toFixed)
{
Number.prototype.toFixed = function(precision) {
var power = Math.pow(10, precision || 0);
return String(Math.round(this * power)/power);
}
}
// OR
Number.prototype.toFixed = function(precision)
{
var num = (Math.round(this*Math.pow(10,precision))).toString();
return num.substring(0,num.length-precision) + "." +
num.substring(num.length-precision, num.length);
}
The idea here is that a single 'Page' object would manage the various defined classes that handle interaction on the page. When 'domready' fires, the Controllers object would do a set of searches for each known controller and establish an object for each element that matches the $$ query. For instance all elements with the CSS class 'JS_Calendar' would be controlled by corresponding objects derived from the Page.Calendar class.
/*
Class: Controllers
This is a namespace for all the classes that control interactive behavior on the
page. It also manages event messaging so that controllers can communicate with
each other.
*/
var Controllers = new Class({
Implements: Events,
initialize: function(cssPrefix) {
this.controllers = [];
window.addEvent('domready', this.initializeControllers.bind(this, cssPrefix));
},
initializeControllers: function(cssPrefix) {
// After the page loads, search for elements with particular CSS classes
// that correspond to JavaScript behavior controllers.
for (property in this) {
if ($type(this[property]) != 'class') {
continue;
}
dbug.log(property);
$$('.' + cssPrefix + property).each(function(el) {
try {
var Controller = this[property];
this.controllers.push(new Controller(el, this));
} catch(e) {
dbug.log(e.message);
}
}.bind(this));
}
this.fireEvent('onInitialize');
}
});
dbug.enable();
var Page = new Controllers('JS_');
// In another file, calendar.js
Page.Calendar = new Class({
initialize: function(el, page) {
// ...
}
});