home *** CD-ROM | disk | FTP | other *** search
- function executa(caminho, comando)
- {
- switch(comando)
- {
- case 1:
- fscommand("RUN.APP",_level0.startdir + caminho);
- break;
- case 2:
- fscommand("ShellOpen",_level0.startdir + caminho);
- break;
- default:
- fscommand("RUN.APP",_level0.startdir + caminho);
- }
- }
- function browser(arquivo, tipo, nome)
- {
- discador._visible = false;
- fscommand("Browser.Close");
- fscommand("Media.Stop");
- fscommand("Browser.SetPos","1,77");
- fscommand("Browser.SetSize","790,453");
- switch(tipo)
- {
- case 1:
- fscommand("Browser.SetURL",_level0.startdir + "\\" + arquivo);
- fscommand("Browser.Open");
- _level6.naveg(nome);
- break;
- case 2:
- fscommand("Browser.SetURL",arquivo);
- fscommand("Browser.Open");
- _level6.naveg(nome);
- break;
- case 3:
- fscommand("ShellOpen",arquivo);
- }
- }
- function acrobat(arquivo)
- {
- fscommand("RUNORG",_level0.startdir + "\\interface\\acrobat\\AcroRd32.exe " + _level0.startdir + "\\" + caminho);
- }
- function naveg(nome)
- {
- this.barra_superior.bt_inicio.enabled = true;
- this.barra_superior.bt_inicio.useHandCursor = true;
- this.barra_superior.seguimento.nome = nome;
- this.barra_superior.seguimento._visible = true;
- }
- function naveg_volta()
- {
- this.barra_superior.bt_inicio.useHandCursor = false;
- this.barra_superior.bt_inicio.enabled = false;
- this.barra_superior.seguimento.nome = "";
- this.barra_superior.seguimento._visible = false;
- }
- function video(caminho)
- {
- _level6.barra_superior.som.gotoAndStop(2);
- _level6.discador._visible = false;
- _level6.msg_disca._visible = false;
- fscommand("Browser.Close");
- fscommand("Media.Type","VIDEO");
- fscommand("Media.SelectFile",_level0.ssStartDir + "\\" + caminho);
- fscommand("Media.SetPosition","196,157");
- fscommand("Media.SetZoom","100");
- fscommand("Media.Play");
- fscommand("Media.GetLength","_level0.totaltime");
- }
- function chama_discador()
- {
- fscommand("Browser.Close");
- fscommand("Media.Stop");
- this.msg_disca._visible = true;
- }
- stop();
- fscommand("ORG","_level0.startdir");
- naveg_volta();
-