[Flashcoders] How can i asign an action to a loaded swf from the mainTimeLine?
Hi. I have a timeline with some actions to load different swfs. WHen i load other swf, i want to asign an action to a movieclip that is in that swf. How can i access it from the main timeline?? Here is the code: function seuCorpoLink(event:MouseEvent):void { var seuCorpo:LoadFile=new LoadFile(seucorpo.swf,txtPct); removeChild(objecto); this.addChild(seuCorpo); seuCorpo.x=317; seuCorpo.y=348; objecto=seuCorpo; } Basically, i have a serie of buttons in the timeline that call different swfs. When i click one of them, it calls the specific swf. That specific swf is loaded successfully but what i want is to add an event listener to a movieclip that is located in the specific swf, to call other swf. I tried this(after objecto=seuCorpo) this.seuCorpo.mc_to_open_other_swf.addEventListener(MouseEvent.CLICK, callOtherSWF); But it fails...(TypeError: Error #1010: A term is undefined and has no properties.) Here is the function that is in the main timeline: function callOtherSWF(event:MouseEvent):void { var marcar:LoadFile=new LoadFile(other.swf,txtPct); removeChild(objecto); this.addChild(marcar); marcar.x=317; marcar.y=348; objecto=marcar; } -- Atentamente, José Maria Barros +351 96 572 61 24 -- José Maria Barros +351 96 572 61 24 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Re: XML Photo Changer Button
Can anyone help?THanks On 6/11/07, José Maria Barros [EMAIL PROTECTED] wrote: Hi changed the folowing code: //creates the numbered buttons //newButt = attachMovie(butt, butt+i, 999+i); //newButt._x = 210+(newButt._width)*pub_count; //newButt._y = 370; //newButt.txt.text = [pub_count]; cliente = mainFotos[i].childNodes[2].attributes.cliente; linha = mainFotos[i].childNodes[2].attributes.projecto; ano = mainFotos[i].childNodes[2].attributes.ano; link = mainFotos[i].childNodes[0].firstChild.nodeValue; //newButt.link2 = mainFotos[i].childNodes[1].firstChild.nodeValue; testeButton.onRelease = function() { mc_loading._visible = true; work_mc._y = 428; imagem_mc._y = -365; imagemp_mc._x = 704; // load the clip myMCL.loadClip(link, imagem_mc); work_mc.cli_txt.text = cliente; work_mc.lin_txt.text = linha; work_mc.ano_txt.text = ano; folioAppearY(work_mc, (i+3), 235); }; pub_count++; } } } The problem is that when i click the button he goes to the last node...how can i make it stop at each value and then when i press it..goes to the new one? im still trying..a help would be great.. José Maria On 6/11/07, José Maria Barros [EMAIL PROTECTED] wrote: Hi..ive been doing a photo menu in xml. Basically i create text buttons for each node that loads a new photo with new information. What i want is to take out the numbers and substitute for two buttons only, one next and one previous button. I cant for now program that everytime i press the button i cant make them go one node ahead..(load the new image and the new information).. Here is the function : function createfotoMenu():Void { pub_count = 1; other_count = 0; for (i=0; imainFotos.length; i++) { var cliente:String = mainFotos[i].childNodes[2].attributes.cliente; var servico:String = mainFotos[i].childNodes[2].attributes.servico; if (cliente == Intermarché servico == Packaging) { first_valueNod = mainFotos[i].childNodes[0].firstChild.nodeValue; first_valueCliente = mainFotos[i].childNodes[2].attributes.cliente; first_valueLinha = mainFotos[i].childNodes[2].attributes.projecto; first_valueAno = mainFotos[i].childNodes[2].attributes.ano; if (other_count == 0) { curr_valueNod = first_valueNod; curr_valueCliente = first_valueCliente; curr_valueLinha = first_valueLinha; curr_valueAno = first_valueAno; other_count++; } //load the first client photo and information work_mc._y = 428; imagem_mc._y = -365; myMCL.loadClip(curr_valueNod, imagem_mc); work_mc.cli_txt.text = curr_valueCliente; work_mc.lin_txt.text = curr_valueLinha; work_mc.ano_txt.text = curr_valueAno; folioAppearY(work_mc, (i+3), 235); //creates the numbered buttons newButt = attachMovie(butt, butt+i, 999+i); newButt._x = 210+(newButt._width)*pub_count; newButt._y = 370; newButt.txt.text = [pub_count]; newButt.cliente = mainFotos[i].childNodes[2].attributes.cliente; newButt.linha = mainFotos[i].childNodes[2].attributes.projecto; newButt.ano = mainFotos[i].childNodes[2].attributes.ano; newButt.link = mainFotos[i].childNodes[0].firstChild.nodeValue; newButt.link2 = mainFotos[i].childNodes[1].firstChild.nodeValue; //loads the information for each movie newButt.onRelease = function() { mc_loading._visible = true; work_mc._y = 428; imagem_mc._y = -365; imagemp_mc._x = 704; // load the clip myMCL.loadClip(this.link, imagem_mc); work_mc.cli_txt.text = this.cliente; work_mc.lin_txt.text = this.linha; work_mc.ano_txt.text = this.ano; folioAppearY(work_mc, (i+3), 235); }; pub_count++; } } } Can anyone give me a tip? Thanks in advance.. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Cycle through XML nodes
Hi, all..I hope anyone can help me here.. I have two buttons: a next and a previous button. I need to cycle through the XML nodes with that.. Like a photo menu that i press next and the next photo and text loads.. Can anyone give me hints about it? THanks in advance ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Cycle through XML nodes
Sorry...didnt know that was a FlashNewbies list..i will subscribe.. On 6/12/07, Paul Venton [EMAIL PROTECTED] wrote: I had thought of posting something similar but in all seriousness this really is pretty basic stuff. Please read some of the Flash documentation, specifically regarding XML - it's all there for the taking. Either that or maybe the FlashNewbies list ... no offence intended. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bob Wohl Sent: 12 June 2007 17:41 To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Cycle through XML nodes currentImage++ On 6/12/07, José Maria Barros [EMAIL PROTECTED] wrote: Hi, all..I hope anyone can help me here.. I have two buttons: a next and a previous button. I need to cycle through the XML nodes with that.. Like a photo menu that i press next and the next photo and text loads.. Can anyone give me hints about it? THanks in advance ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] XML Photo Changer Button
Hi..ive been doing a photo menu in xml. Basically i create text buttons for each node that loads a new photo with new information. What i want is to take out the numbers and substitute for two buttons only, one next and one previous button. I cant for now program that everytime i press the button i cant make them go one node ahead..(load the new image and the new information).. Here is the function : function createfotoMenu():Void { pub_count = 1; other_count = 0; for (i=0; imainFotos.length; i++) { var cliente:String = mainFotos[i].childNodes[2].attributes.cliente; var servico:String = mainFotos[i].childNodes[2].attributes.servico; if (cliente == Intermarché servico == Packaging) { first_valueNod = mainFotos[i].childNodes[0].firstChild.nodeValue; first_valueCliente = mainFotos[i].childNodes[2].attributes.cliente; first_valueLinha = mainFotos[i].childNodes[2].attributes.projecto; first_valueAno = mainFotos[i].childNodes[2].attributes.ano; if (other_count == 0) { curr_valueNod = first_valueNod; curr_valueCliente = first_valueCliente; curr_valueLinha = first_valueLinha; curr_valueAno = first_valueAno; other_count++; } //load the first client photo and information work_mc._y = 428; imagem_mc._y = -365; myMCL.loadClip(curr_valueNod, imagem_mc); work_mc.cli_txt.text = curr_valueCliente; work_mc.lin_txt.text = curr_valueLinha; work_mc.ano_txt.text = curr_valueAno; folioAppearY(work_mc, (i+3), 235); //creates the numbered buttons newButt = attachMovie(butt, butt+i, 999+i); newButt._x = 210+(newButt._width)*pub_count; newButt._y = 370; newButt.txt.text = [pub_count]; newButt.cliente = mainFotos[i].childNodes[2].attributes.cliente; newButt.linha = mainFotos[i].childNodes[2].attributes.projecto; newButt.ano = mainFotos[i].childNodes[2].attributes.ano; newButt.link = mainFotos[i].childNodes[0].firstChild.nodeValue; newButt.link2 = mainFotos[i].childNodes[1].firstChild.nodeValue; //loads the information for each movie newButt.onRelease = function() { mc_loading._visible = true; work_mc._y = 428; imagem_mc._y = -365; imagemp_mc._x = 704; // load the clip myMCL.loadClip(this.link, imagem_mc); work_mc.cli_txt.text = this.cliente; work_mc.lin_txt.text = this.linha; work_mc.ano_txt.text = this.ano; folioAppearY(work_mc, (i+3), 235); }; pub_count++; } } } Can anyone give me a tip? Thanks in advance.. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Re: XML Photo Changer Button
Hi changed the folowing code: //creates the numbered buttons //newButt = attachMovie(butt, butt+i, 999+i); //newButt._x = 210+(newButt._width)*pub_count; //newButt._y = 370; //newButt.txt.text = [pub_count]; cliente = mainFotos[i].childNodes[2].attributes.cliente; linha = mainFotos[i].childNodes[2].attributes.projecto; ano = mainFotos[i].childNodes[2].attributes.ano; link = mainFotos[i].childNodes[0].firstChild.nodeValue; //newButt.link2 = mainFotos[i].childNodes[1].firstChild.nodeValue; testeButton.onRelease = function() { mc_loading._visible = true; work_mc._y = 428; imagem_mc._y = -365; imagemp_mc._x = 704; // load the clip myMCL.loadClip(link, imagem_mc); work_mc.cli_txt.text = cliente; work_mc.lin_txt.text = linha; work_mc.ano_txt.text = ano; folioAppearY(work_mc, (i+3), 235); }; pub_count++; } } } The problem is that when i click the button he goes to the last node...how can i make it stop at each value and then when i press it..goes to the new one? im still trying..a help would be great.. José Maria On 6/11/07, José Maria Barros [EMAIL PROTECTED] wrote: Hi..ive been doing a photo menu in xml. Basically i create text buttons for each node that loads a new photo with new information. What i want is to take out the numbers and substitute for two buttons only, one next and one previous button. I cant for now program that everytime i press the button i cant make them go one node ahead..(load the new image and the new information).. Here is the function : function createfotoMenu():Void { pub_count = 1; other_count = 0; for (i=0; imainFotos.length; i++) { var cliente:String = mainFotos[i].childNodes[2].attributes.cliente; var servico:String = mainFotos[i].childNodes[2].attributes.servico; if (cliente == Intermarché servico == Packaging) { first_valueNod = mainFotos[i].childNodes[0].firstChild.nodeValue; first_valueCliente = mainFotos[i].childNodes[2].attributes.cliente; first_valueLinha = mainFotos[i].childNodes[2].attributes.projecto; first_valueAno = mainFotos[i].childNodes[2].attributes.ano; if (other_count == 0) { curr_valueNod = first_valueNod; curr_valueCliente = first_valueCliente; curr_valueLinha = first_valueLinha; curr_valueAno = first_valueAno; other_count++; } //load the first client photo and information work_mc._y = 428; imagem_mc._y = -365; myMCL.loadClip(curr_valueNod, imagem_mc); work_mc.cli_txt.text = curr_valueCliente; work_mc.lin_txt.text = curr_valueLinha; work_mc.ano_txt.text = curr_valueAno; folioAppearY(work_mc, (i+3), 235); //creates the numbered buttons newButt = attachMovie(butt, butt+i, 999+i); newButt._x = 210+(newButt._width)*pub_count; newButt._y = 370; newButt.txt.text = [pub_count]; newButt.cliente = mainFotos[i].childNodes[2].attributes.cliente; newButt.linha = mainFotos[i].childNodes[2].attributes.projecto; newButt.ano = mainFotos[i].childNodes[2].attributes.ano; newButt.link = mainFotos[i].childNodes[0].firstChild.nodeValue; newButt.link2 = mainFotos[i].childNodes[1].firstChild.nodeValue; //loads the information for each movie newButt.onRelease = function() { mc_loading._visible = true; work_mc._y = 428; imagem_mc._y = -365; imagemp_mc._x = 704; // load the clip myMCL.loadClip(this.link, imagem_mc); work_mc.cli_txt.text = this.cliente; work_mc.lin_txt.text = this.linha; work_mc.ano_txt.text = this.ano; folioAppearY(work_mc, (i+3), 235); }; pub_count++; } } } Can anyone give me a tip? Thanks in advance.. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Errors in some cases...
Hi...ive done a website for a bar..and some people cant press the Entrar button...they cant open it...its strange..and some people cant see anything in the main site.. Can someone plz see and give me a hint of what may be? http://www.justbeloungelx.com Many thanks... José Maria Barros ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Errors in some cases...
Crap..i have the IE 7...so..thats the problem...can i have the ie installed as well? for test purposes? On 12/7/06, Rákos Attila [EMAIL PROTECTED] wrote: I confirm that it doesn't work on IE6. Propably your pngfix.js is responsible for the problem, because I saved the page to local drive, cut out this pngfix.js line and everything worked perfectly (except the transparent PNG of course :)) Attila ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Call iframe (firefox, safari)
Olá Ricardo...ve la se este link pode ajudar te... http://www.ozzu.com/ftopic30013.html On 12/7/06, Ricardo Camarinha [EMAIL PROTECTED] wrote: How can I call and iframe with flash buttons??? I've tried the normal process getURL(page.html , content), but in firefox and safari it keeps opening in a new window. Thanks Ricardo On Dec 7, 2006, at 3:06 PM, Ricardo Camarinha wrote: How can I call and iframe with flash buttons??? Thank you Ricardo ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com Ricardo Camarinha | doismaisdois.com Brasil 0055 21 88 48 3358 Portugal 00351 91 959 09 93 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Switch case problem...
Hello againwell i didnt solved it yet... See the website..to see what i mean..thank you. http://www.justbeloungelx.com And by the way i aprecciate your comment Jason Merril...its definitly with lots of redundancy...maybe i dont need to make objects fuse all the time..i have to check them out.. Thanks for all answers..i will try to solve it tough... On 12/5/06, Margo Powell [EMAIL PROTECTED] wrote: Would replacing gotoAndPlay with gotoAndStop work with your timeline layout? That might fix your issue. Jose Maria Barros wrote: here is the goLink function... function goLink():Void{ _root.myClip.prin_mc.gotoAndPlay(linkName); } On 12/5/06, Jose Maria Barros [EMAIL PROTECTED] wrote: here is the code...i think nothing is wrong... switch(linkName) { case about: var jpAbout = new Fuse(); jpAbout.push({target:myClip.prin_mc.textAbout_mc ,_alpha:0,Blur_blurX:100, Blur_blurY:100,seconds:1,ease:easeOutQuad, func:goLink, scope: myClip.prin_mc}) jpAbout.start(); break; case noticias: var jpNoticias = new Fuse(); jpNoticias.push({target:myClip.prin_mc.textAbout_mc ,_alpha:0,Blur_blurX:100, Blur_blurY:100,seconds:1,ease:easeOutQuad,func:goLink, scope: myClip.prin_mc}) jpNoticias.start(); break; case fotos: var jpFotos = new Fuse(); jpFotos.push({target:myClip.prin_mc.janelaFotos_mc ,_alpha:0,Blur_blurX:100, Blur_blurY:100,seconds:1,ease:easeOutQuad,func:goLink, scope: myClip.prin_mc}) jpFotos.start(); break; case sugestao: var jpSugestao = new Fuse(); jpSugestao.push({target:myClip.prin_mc.textSugestao_mc ,_alpha:0,Blur_blurX:100, Blur_blurY:100,seconds:1,ease:easeOutQuad,func:goLink, scope: myClip.prin_mc}) jpSugestao.start(); break; default: break; } On 12/5/06, badi malik [EMAIL PROTECTED] wrote: you might be missing a ':' b - Original Message From: Jose Maria Barros [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Tuesday, December 5, 2006 11:01:30 AM Subject: Re: [Flashcoders] Switch case problem... yes On 12/5/06, Joey Rivera [EMAIL PROTECTED] wrote: You putting breaks in the case statements? Joey Rivera Flash Developer iLearn, Inc. (770) 218-0972 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] ] On Behalf Of Jose Maria Barros Sent: Tuesday, December 05, 2006 1:50 PM To: Flashcoders mailing list Subject: [Flashcoders] Switch case problem... Hi.. Ive done a function with a switch case wich have each one a string variable value with the name of the link... var linkName:String = ; switch(linkName) { case link1: //run function with a gotoAndPlay that goes to the frame(linkName) case link2: //run function with a gotoAndPlay that goes to the frame(linkName) etc } And when i press a button for that link...he stores the value in the variable(linkName) and he runs the function... The problem is that when i press the button one...he goes to that link...but when i press the same button again...he goes to other link... I dont understand...i appreciate some help.. Thanks in advance. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: