Comunidad de diseño web y desarrollo en internet online

Urgente javascript y flash

Citar            
MensajeEscrito el 17 Sep 2004 06:07 am
hola, NECESITO hacer un pop-up a una foto (o a un html) usando el fscommand ( la direcc de esto http://www.macromedia.com/es/support/flash/ts/documents/popup_windows.htm )

pero el problema es que mi pelicula está separada en subpeliculas (ocupé el metodo de la carga con MovieClipLoader) y no me hacepta el codigo, ya q el pop up no aparece.

tb prové en una pelicula aparte este metodo, desde el .swf principa,l cargué la foto y niun problema.

la distribucion en la pelicula es mas o menos asi:

swf principal:
Mainv.swf
carga una subpelicula a "Pel" ( un simbolo clip de pelicula)

swf secundario:
Inte.swf
carga subpelicula a "Pel2" (lo mismo quel anterior)

swf terciario:
Foto.swf
tengo un boton llamado "F1" que tiene escrito esto:
on(release){
fscommand("foto1");
}

por último:
el codigo html de Mainv:


function Mainv_DoFSCommand(command, args) {if(command=="foto1"){ openNewWindow()}}
function openNewWindow(){setTimeout(
window.open('http://www.angelfire.com/rings/na2/Colgados.jpg','Colgados',
'height=400,width=300,toolbar=no')),0}
.
.
.
me imagino que no se llamar el fscommand en esta parte:
if(command=="foto1"){

que alomejor deberia ser algo asi:
if(command=="Pel.Pel2.foto1"){

(aunque esto no funcionó)

:shock: uta! necesito ayuda ojalá sea pronto que debo entregar esta pagina pronto.

de antemano gracias.

Por Nadoiz

12 de clabLevel



 

unknown
Citar            
MensajeEscrito el 17 Sep 2004 06:20 am
que navegadir estás usando ?

a ver, a ver, primero que nada, no te recomiendo usarlos, es una practica no muy recomendable, pero en fin.

Si es que asi te lo solicitó el cliente pues..... :roll:

Primero que nada, en el botón que te va a abrir el popup deberás poner lo siguiente:

on (release) {
fscommand("openWindow", "_self");
}


y en el html deberas poner algo asi, tu adáptalo a tus necesidades, en este caso el archivo que contiene el FSCommand se llama index.swf :

<HTML>
<HEAD>
<TITLE>FSCommand</TITLE>
</HEAD>
<BODY bgcolor="#FFFFFF">
<SCRIPT LANGUAGE=JavaScript>
<!--
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the the FSCommand messages in a Flash movie
function FSCommand_DoFSCommand(command, args) {
var FSCommandObj = InternetExplorer ? FSCommand : document.FSCommand;
//
{if(command=="openWindow"){ openNewWindow()}}function openNewWindow(){setTimeout(window.open('index.htm','newwindow',
'height=780,width=500,toolbar=no')),0}
//
}
// Hook for Internet Explorer
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 &&
navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
document.write('<SCRIPT LANGUAGE=VBScript\> \n');
document.write('on error resume next \n');
document.write('Sub FSCommand_FSCommand(ByVal command, ByVal args)\n');
document.write(' call FSCommand_DoFSCommand(command, args)\n');
document.write('end sub\n');
document.write('</SCRIPT\> \n');
}
//-->
</SCRIPT>
<!-- URL's used in the movie-->
<A HREF=FSCommand:openWindow></A> <!-- text used in the movie-->
<!--This button opens a new window method: FSCommand --><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
ID=FSCommand WIDTH=780 HEIGHT=500>
<PARAM NAME=movie VALUE="index.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="index.swf" quality=high bgcolor=#FFFFFF WIDTH=780 HEIGHT=500 swLiveConnect=true NAME=FSCommand TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>
</OBJECT>
</BODY>
</HTML>


pero sigo diciéndote, que no te lo recomiendo, ok? :roll: :|

Por La100rra

Claber

5776 de clabLevel

11 tutoriales
4 articulos

Genero:Masculino  



Ultima edición por La100rra el 17 Sep 2004 06:34 am, editado 1 vez

Cd. Juárez, Chihuahua, México.

unknown
Citar            
MensajeEscrito el 17 Sep 2004 06:22 am
uso Mozilla y tengo el Explorer tb, y lo probé con los 2

Por Nadoiz

12 de clabLevel



 

unknown
Citar            
MensajeEscrito el 21 Sep 2004 10:28 pm
en esta linea :

function FSCommand_DoFSCommand(command, args) {
var FSCommandObj = InternetExplorer ? FSCommand : document.FSCommand;
//
{if(command=="openWindow"){ openNewWindow()}}function openNewWindow(){setTimeout(window.open('index.htm','newwindow',
'height=780,width=500,toolbar=no')),0}
//
}

el primer FSCommand fue como llamaste tu pelicula?

ese index.html es donde está el swf con las fotos para hacer el pop -up? (no caché eso)

Por Nadoiz

12 de clabLevel



 

unknown

 

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