Hi,

I think this question still in the scopo of this list but...
I need to pass some parameters from browser to my shockwave movie, I've made
this javascript to do this:

<script language="javascript">
<!--
caminho = document.referrer;
parametro = location.search;
tamanho = parametro.length;
posicao = new Array();
indice = 0;
for(c=0;c<=tamanho;c++){
    letra = parametro.charAt(c);
        if(letra == '&') {
            posicao[indice] = c;
            indice ++;
        }
}
dir = parametro.substring(5,posicao[0]);
clip = parametro.substring((posicao[0]+6),posicao[1]);
tstart = parametro.substring((posicao[1]+8),posicao[2]);
tfinal = parametro.substring((posicao[2]+8),tamanho);
function passaParametros(){
    argumentos = dir + ',' + clip + ',' + tstart + ',' + tfinal;
    document.meufilme.EvalScript(argumentos);
}
//-->
</script>

And in the director (lingo) side, I put on a startmovie

global argumentos
put item 1 of argumentos into dir
  put item 2 of argumentos into clip
  put item 3 of argumentos into tstart
  put item 4 of argumentos into tfinal

but it isn't work. Does anyone knows what could happend??

Thank's

Rodrigo Peres


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to