Holad De nuez, Ya checaste que tu elemento tenga el nombre en la libreria, con el nombre de la exportacion.
Si no, no importa cuantos attachMovie hagas nunca va a jalar. Probe el codigo de abajo y si funciona bien, y agarra los elementos de la libreria. Solo seria de doble checar. Aveces lo vasico se nos va :O) ...helmut <HLS> CONFIDENTIALITY NOTICE: This E-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized retention, review, printing, copying, disclosure or distribution is prohibited. If you are not one of the intended recipients, please contact the sender by reply e-mail or phone, destroy all copies of the original message and keep the information contained here confidential. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ||| JOHNMARTIN Sent: Wednesday, January 07, 2004 11:24 AM To: [EMAIL PROTECTED] Subject: Re: [ASNativos] Ayuda con > Function Saludos, mil gracias por responder. Veo mi problema aun, y creo saber donde esta pero no se la solucion. Cuando llamo con attachMovie, debo poner un string que corresponde a mi elemento en la libreria, pero cuando llamo la funcion poner (productos ... ) pareciera que este no entra en el string de attachMovie ("clip" ... ), o sea que no logro poner productos en attachMovie("productos" ...) Como seria ahora? Gracias de nuevo ! JOHNMARTIN www.usershock.com Macromedia User Group ----- Original Message ----- From: "Helmut" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 07, 2004 1:53 AM Subject: RE: [ASNativos] Ayuda con > Function Hola Martin Mira tu funcion esta bien el unico problema es que lo tienes mal formado. for (i=0; i<=5; i++) { function poner(clip, ejex, ejey) { } } Cuando quieres activar esta function no funciona porqe primero esta el for statement, entonces flash dice. " Como quieres que te corra la function si primero tienes que activar el FOR statement?" Facil de solucionar, voltealo asi: function poner(clip, ejex, ejey) { for (i=0; i<=5; i++) { } } Ahora si dice flash " ahora si entiendo, Primero llamas la funcion y despues el FOR statement. Asi si baila mi hija con el se�or. Aqui tiene sus 5 objetos y a poner... la function eso es, no seas mal pensado" Entonces quedaria asi: //------------------------ function poner(clip, ejex, ejey) { for (i=0; i<=5; i++) { attachMovie("clip", "clip"+i, i+1); this["clip"+i]._x = ejex; this["clip"+i]._y = ejey; } } productos_mc.onRelease = function(){ poner(productos, 34, 150); } //------------------------ Nos Vemos ...helmut <HLS> CONFIDENTIALITY NOTICE: This E-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized retention, review, printing, copying, disclosure or distribution is prohibited. If you are not one of the intended recipients, please contact the sender by reply e-mail or phone, destroy all copies of the original message and keep the information contained here confidential. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ||| JOHNMARTIN Sent: Tuesday, January 06, 2004 11:06 PM To: [EMAIL PROTECTED] Subject: [ASNativos] Ayuda con > Function Saludos amigos. Ahora llego con esta peque�a duda con la que no he podido ir bien sobre funciones. Al presionar > productos_mc, pues no me carga bien la function poner //------------------------ for (i=0; i<=5; i++) { function poner(clip, ejex, ejey) { attachMovie("clip", "clip"+i, i+1); this["clip"+i]._x = ejex; this["clip"+i]._y = ejey; } } productos_mc.onRelease = function(){ poner(productos, 34, 150); } //------------------------ Mil gracias amigos ! JOHNMARTIN www.usershock.com Macromedia User Group <!------------------------------- Lista ASNativos: subscripciones/desubscripciones http://www.sidedev.net/asnativos -------------------------------->
