Comunidad de diseño web y desarrollo en internet online

Ayuda - Flash y Php

Citar            
MensajeEscrito el 04 Mar 2007 02:08 am
Hola, me baje un reproductor flash de internet pero no funciona. Al menos eso parece.

La cuestion es que para cargar las variables tiene esto:

loadVars_out.sendAndLoad(".player/getlist.php", loadVars_in);
stop ();

bueno son las ultimas 2 lineas.

en getlist.php hay vriables de tipo &id=1&nombre=Video1 pero cuando lo quiero ver en el reproductor no lo carga. A mi me parece que en el archivo PHP hay alguna clase de codigo PHP obviamente pero no se como generar multiples variables.

Aca les dejo una parte de donde tiene que cargar los archivos:


Código :

var loadVars_in = new LoadVars();
var loadVars_out = new LoadVars();
loadVars_in.onLoad = function (success)
{
    if (success)
    {
        vPath = new Array();
        vImg = new Array();
        vTitle = new Array();
        vType = new Array();
        e = 0;
        for (var _loc2 = 0; _loc2 < total_videos; ++_loc2)
        {
            vPath[_loc2] = "./player/flv/" + loadVars_in["id" + _loc2] + ".flv";
            vImg[_loc2] = "./player/image/" + loadVars_in["id" + _loc2] + ".gif";
            vTitle[_loc2] = loadVars_in["title" + _loc2];
            vType[_loc2] = loadVars_in["type" + _loc2];
            pl.img.duplicateMovieClip("img" + _loc2, _loc2);
            pl["img" + _loc2].loadMovie(vImg[_loc2]);
            pl.list.row.duplicateMovieClip("row" + _loc2, _loc2);
            pl.list["row" + _loc2].num.text = _loc2 + 1;
            pl.list["row" + _loc2].title.text = vTitle[_loc2];
            pl.list["row" + _loc2].date.text = "07.09.2006";
            pl.list["row" + _loc2]._y = 18 * _loc2 + pl.list["row" + _loc2]._y;
            pl.list["row" + _loc2].but.onPress = function ()
            {
                current_movie = this._parent.getDepth();
                start_playing();
            };
            pl.list["row" + _loc2].but.onRollOver = function ()
            {
                pl["img" + this._parent.getDepth()]._width = 70;
                pl["img" + this._parent.getDepth()]._height = 62;
                pl["img" + current_movie]._visible = false;
                pl["img" + this._parent.getDepth()]._visible = true;
                pl.title.text = vTitle[this._parent.getDepth()];
                pl.type.text = vType[this._parent.getDepth()];
                if (pl.title.length > 36)
                {
                    pl.type._y = pl.title._y + 30;
                }
                else
                {
                    pl.type._y = pl.title._y + 15;
                } // end else if
            };
            pl.list["row" + _loc2].but.onRollOut = function ()
            {
                pl["img" + this._parent.getDepth()]._visible = false;
                pl["img" + current_movie]._visible = true;
                pl.title.text = vTitle[current_movie];
                pl.type.text = vType[current_movie];
                if (pl.title.length > 36)
                {
                    pl.type._y = pl.title._y + 30;
                }
                else
                {
                    pl.type._y = pl.title._y + 15;
                } // end else if
            };
        } // end of for
    } // end if




No tengo idea de que significa _loc2
Alguien me dice que es?
El tema es que tengo el video, el gif, y getlist.php en localhost pero no me toma los videos, no los reproduce ni muestra sus nombres en el playlist.
Alguna ayuda por favor?

Muchisimas gracias.

Por asdasd

1 de clabLevel



 

firefox
Citar            
MensajeEscrito el 04 Mar 2007 02:42 am
Resuelto, disculpen las molestias.

El problema radicaba en que estaba mal hecho el getlist.php, con cosas tipo como &;amp o algo asi que no está en ASCII...bueno no se mucho de eso. Igual muchas gracias.

Por asdasd

1 de clabLevel



 

firefox

 

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