Hola buenas tardes
Al actualiar flash player 11, mi flash dego de funcionar , muestra imágenes externas.
Asi lo coloco en el archivo html
<div id="banner1" class="centswf"><a href="http://www.macromedia.com/go/getflash" target="_blank"><?php echo $_INTEXTS[73]; ?></a></div>
<script type="text/javascript">
<?php $fvars='rand='.($_OPS['banners_random']==1 ? 1 : 0).'&times='.(($_OPS['banners_time'])*1000).'&idbanner=1&id=1'; ?>
var so = new SWFObject('swf/banners.swf','mp5','200','150','9','#000000');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','false');
so.addParam('wmode','transparent');
so.addParam('flashvars','<?php echo $fvars; ?>');
so.write('banner1');
</script>
archivo as
_root.times = parseInt(_root.times);
_root.rand = (_root.rand == '1' ? true : false );
trace(_root.times+' '+_root.rand);
var defh=100;
var defw=615;
var lastc:Number = 2;
var lastn:Number = -1;
var aup:Number = 5;
var aun:Number = 10;
var div:Number = 0.05;
var ac:MovieClip;
var oc:MovieClip;
var mcLoader:MovieClipLoader = new MovieClipLoader();
var imgs:Array = new Array();
var links:Array = new Array();
mcLoader.addListener(this);
var imagenes_xml = new XML();
_global.datos_obj = new Object();
imagenes_xml.ignoreWhite = true;
imagenes_xml.onLoad = function(){
if(this.loaded){
leerXML(this.firstChild, 0, datos_obj);
trace(datos_obj);
for(it in datos_obj){
_root.imgs.push(datos_obj[it].__atributos.filename);
_root.links.push(datos_obj[it].__atributos.link);
}
trace('img'+_root.imgs);
trace("se cargó");
//listo, se cargó, ahora hacemos lo que hay que hacer luego de cargado miau
//trace(datos_obj.productos.p_0.item_1.__atributos.n ombre);
//loadimg();
}else{
trace("no cargó");
}
}
function onLoadInit(mc:MovieClip) {
_root.ac.swapDepths(_root.oc);
trace(_root.lastn);
_root.ac.cont = 0;
_root.ac.onEnterFrame = function(){
this._x = (Stage.width/2)-(this._width/2);
this._y = (Stage.height/2)-(this._height/2);
this.cont += (this.cont > 0) ? (_root.aup*((100-this.cont)*_root.div)) : 1;
this._alpha = this.cont;
this._xscale = this.cont;
//this._yscale = (((this.cont*2) < 100) ? (this.cont*2) : 100);
this._yscale = this.cont;
if(this._alpha >= 99){
//this._xscale = 100;
//this._yscale = 100;
this._alpha = 100;
delete this.onEnterFrame;
}
}
_root.oc.onEnterFrame = function(){
this._x = (Stage.width/2)-(this._width/2);
this._y = (Stage.height/2)-(this._height/2);
this.cont -= (_root.aun*(this.cont/100));
this._alpha = this.cont;
this._xscale = this.cont;
this._yscale = this.cont;
if(this._alpha <= 0){
this._xscale = 1;
this._yscale = 1;
this._alpha = 0;
delete this.onEnterFrame;
}
}
_root.lastc = (_root.lastc == 1) ? 2 : 1;
trace('init');
_root.inter = setInterval(_root.loadimg,_root.times);
}
function leerXML(rama_xml:XMLNode, nivel:Number, datos_obj:Object){
trace(rama_xml);
for(var xml in rama_xml.childNodes){
var nombreNodo_str = rama_xml.childNodes[xml].nodeName;
if(datos_obj[nombreNodo_str] == undefined){
datos_obj[nombreNodo_str] = new Array();
}
if(datos_obj[nombreNodo_str]["__atributos"] == undefined){
datos_obj[nombreNodo_str]["__atributos"] = new Array();
for(var atributos in rama_xml.childNodes[xml].attributes){
datos_obj[nombreNodo_str]["__atributos"][atributos] = unescape(rama_xml.childNodes[xml].attributes[atributos]);
}
}
if(rama_xml.childNodes[xml].hasChildNodes()){
leerXML(rama_xml.childNodes[xml], (nivel + 1), datos_obj[nombreNodo_str]);
}
}
gotoAndPlay('Scene 2');
}
imagenes_xml.load("banners_xml.php");
escena 2
function loadimg()
{
_root.t = container1;
clearInterval(_root.inter);
_root.ac = _root.lastc == 1 ? (container2) : (container1);
_root.oc = _root.lastc != 1 ? (container2) : (container1);
if (_root.rand)
{
n = _root.lastn;
if (_root.imgs.length == 1)
{
n = 0;
}
else
{
while (_root.lastn == n)
{
n = Math.round(Math.random() * (_root.imgs.length - 1));
} // end while
} // end else if
_root.lastn = n;
}
else
{
n = _root.contad;
++_root.contad;
if (_root.contad >= _root.imgs.length)
{
_root.contad = 0;
} // end if
} // end else if
trace (_root.links);
if (_root.links[n].length > 0)
{
_root.but.onRelease = function ()
{
getURL(_root.links[n], "_self");
};
trace (_root.onRelease);
}
else
{
delete _root.onRelease;
} // end else if
trace (n);
_root.mcLoader.loadClip("upfiles/bnr/" + _root.imgs[n], _root.ac);
} // End of the function
stop ();
var container2 = _root.c2;
var container1 = _root.c1;
var contad = 0;
container1._alpha = container2._alpha = 0;
container1._xscale = 1;
container2._xscale = 1;
container1._yscale = 1;
container2._yscale = 1;
container1._y = container1._x = container2._y = container2._x = 0;
trace (container1 + " " + container2);
loadimg();
xml es php
header('Content-type: text/xml; charset=UTF-8');
echo '<?xml version="1.0" encoding="utf-8"?>';
$c = new MYSQL();
$res = $c->c('SELECT * FROM banners WHERE tipo = '.intval($_GET['id']).' ORDER BY orden DESC, idbanner DESC');
?>
<listfiles><?php
$i=0;
while($r = $c->ass($res)){
?>
<file_<?php echo $i ?> filename="<?php echo $r['archivo']; ?>" link="<?php echo $r['link']; ?>"></file_><?php echo $i ?>>
<?php
$i++;
}
?>
</listfiles>
ojala me puedan ayudar o sugerirme algo que pueda incrementar
Gracias