Comunidad de diseño web y desarrollo en internet online

AYUDA. Objeto basico arriba de un creado en java.

Citar            
MensajeEscrito el 26 Ene 2007 04:54 pm
Hola a todos,

Llevo mucho tiempo visitando esta web, y aun no me havia decidio a registrarme en el foro, y creo que ahora es buen momento para empezar... :wink:

Bueno vamos al meollo del asunto.
Resulta que tengo un codigo en un flash para cargar contenido lista en un xml, por ejemplo imagenes que es de lo que se trata. Adjunto codigo:

Código :

function setButton()
{
    if (lnkArr[_root.nxt] == "none" || lnkArr[_root.nxt] == "")
    {
        null;
    }
    else
    {
        _root.button._visible = true;
        button.onPress = function ()
        {
            if (lnkArr[_root.nxt] == "next")
            {
                rotateIt();
            }
            else
            {
                getURL(lnkArr[_root.nxt], "_blank");
            } // end else if
        };
    } // end else if
} // End of the function
function bgfade()
{
    _root["container" + prv].onEnterFrame = function ()
    {
        this._alpha = this._alpha - 2;
        if (this._alpha <= 0)
        {
            setButton();
            delete this.onEnterFrame;
            _root["container" + nxt].onEnterFrame = function ()
            {
                this._alpha = this._alpha + 2;
                if (this._alpha >= 100)
                {
                    delete this.onEnterFrame;
                } // end if
            };
        } // end if
    };
} // End of the function
function fade()
{
    _root["container" + nxt].onEnterFrame = function ()
    {
        this._alpha = this._alpha + 2;
        if (this._alpha >= 100)
        {
            delete this.onEnterFrame;
            setButton();
        } // end if
    };
} // End of the function
function blocks()
{
    _root.attachMovie("blocksMask", "mask", 3);
    _root.mask._rotation = random(4) * 90;
    _root.mask._rotation == 90 ? (_root.mask._x = Stage.width) : (null);
    _root.mask._rotation == 180 ? (_root.mask._x = Stage.width) : (null);
    _root.mask._rotation == 180 ? (_root.mask._y = Stage.height) : (null);
    _root.mask._rotation == -90 ? (_root.mask._y = Stage.height) : (null);
    _root["container" + nxt].setMask(_root.mask);
    _root["container" + nxt]._alpha = 100;
    setButton();
} // End of the function
function circles()
{
    _root.attachMovie("circlesMask", "mask", 3);
    _root.mask._x = Stage.width / 8;
    _root.mask._y = Stage.height / 8;
    _root.mask.i = 0;
    _root.mask.onEnterFrame = function ()
    {
        ++this.i;
        this._rotation = this._rotation + 10;
        this.i > 35 ? (_root.mask.removeMovieClip()) : (null);
    };
    _root["container" + nxt].setMask(_root.mask);
    _root["container" + nxt]._alpha = 100;
    setButton();
} // End of the function
function rotateIt()
{
    _root.button._visible = false;
    clearInterval(rotateItInt);
    _root["container" + prv].removeMovieClip();
    _root["container" + nxt].swapDepths(1);
    _root.mask.removeMovieClip();
    prv = nxt;
    if (randomplay == "true")
    {
        nxt = random(jpgArr.length);
        nxt == prv ? (nxt = random(jpgArr.length)) : (null);
        nxt == prv ? (nxt = random(jpgArr.length)) : (null);
    }
    else if (nxt >= jpgArr.length - 1)
    {
        nxt = 0;
    }
    else
    {
        ++nxt;
    } // end else if
    _root.createEmptyMovieClip("container" + nxt, 2);
    _root["container" + nxt]._alpha = 0;
    mcl.loadClip(jpgArr[nxt], _root["container" + nxt]);
} // End of the function
Stage.showMenu = false;
Stage.scaleMode = "noScale";
Stage.align = "TL";
mcl = new MovieClipLoader();
jpgArr = new Array();
lnkArr = new Array();
!_root.xmlfile ? (_root.xmlfile = "http://www.vapf.com/bannersweb/fotos-banner-izquierda/bonavista/circles.xml") : (null);
_root.attachMovie("button", "button", 99);
_root.button._width = Stage.width;
_root.button._height = Stage.height;
jpgXML = new XML();
jpgXML.ignoreWhite = true;
jpgXML.onLoad = function (success)
{
    if (success)
    {
        time = int(this.firstChild.attributes.time);
        transition = this.firstChild.attributes.transition;
        randomplay = this.firstChild.attributes.randomplay;
        for (var _loc3 = 0; _loc3 < this.firstChild.childNodes.length; ++_loc3)
        {
            jpgArr.push(String(this.firstChild.childNodes[_loc3].attributes.file));
            lnkArr.push(String(this.firstChild.childNodes[_loc3].attributes.link));
        } // end of for
        mcl.onLoadComplete = function ()
        {
            rotateItInt = setInterval(rotateIt, time);
            transition == "bgfade" ? (bgfade()) : (null);
            transition == "fade" ? (fade()) : (null);
            transition == "blocks" ? (blocks()) : (null);
            transition == "circles" ? (circles()) : (null);
        };
        nxt = jpgArr.length;
        _root.createEmptyMovieClip("container" + nxt, 2);
        rotateIt();
    } // end if
};
jpgXML.load(_root.xmlfile);
[/quote]

Hasta aqui todo funciona correctamente, pero el problema que tengo, es que si coloco un grafico o objeto dentro del flash donde tengo este codigo que carga estas imagenes siempre queda por debajo (con lo que no se ve). Logicamente he probado a colocar en una capa por debajo del objeto el codigo.

¿Como colocar un objeto basico arriba de un creado en java?

Un saludo,
mdoohan[/quote]

Por mdoohan

1 de clabLevel



Genero:Masculino  

msie
Citar            
MensajeEscrito el 02 Feb 2007 10:39 am
Cuando me carga las imagenes que lee desde el xml, estas siempre estan por encima de cualquier objeto que este en la pelicula flash.

¿Como podria solucionar este tema?

Un saludo,

Por mdoohan

1 de clabLevel



Genero:Masculino  

msie

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.