Obi1-Cannabis Posted February 23, 2007 Share Posted February 23, 2007 HeyBack with another problem flash+xml+php+mysql, but the problem is only between flash and the xml created by the php... flash accesses the php, it does what it is suposed to do, that is checks if the information is on the DB if it's not inserts it and creates xml code saying "inserted" if it's already there creates that code but sayin "already there", untill here everything is fine but the flash is not getting those answers back... function responde() { resposta=respostaXML.firstChild.childNodes[0].nodeValue; trace("it's here"); _parent.resp.text = resposta;} respostaXML = new XML;respostaXML.ignoreWhite = true;respostaXML.onLoad = responde;respostaXML.load("http://cgseguros/newsletter.php?&nome="+_parent.your_name+"&mail="+_parent.your_email); ...in fact it doesn't even enter the function(it's not displaying that 'trace' nor giving the value to '_parent.resp.text.can this be because the file is php but is displaying xml?EDIT:No that can't be the problem i've used it before... Link to comment Share on other sites More sharing options...
Obi1-Cannabis Posted February 23, 2007 Author Share Posted February 23, 2007 my bad... i was trying to put the function inside the onRelease :)but i still have a doubt, how is possible to make the text field empty after... lets say... 3 seconds? Link to comment Share on other sites More sharing options...
smiles Posted February 24, 2007 Share Posted February 24, 2007 respostaXML = new XML;respostaXML.ignoreWhite = true;respostaXML.onLoad = function responde() { resposta=respostaXML.firstChild.childNodes[0].nodeValue; trace("it's here"); _parent.resp.text = resposta;};respostaXML.load("http://cgseguros/newsletter.php?&nome="+_parent.your_name+"&mail="+_parent.your_email); Link to comment Share on other sites More sharing options...
smiles Posted February 24, 2007 Share Posted February 24, 2007 About the second, maybe like this pass_by = getTimer();if (pass_by == 3000){ your_textField.text = "Hello World";} Link to comment Share on other sites More sharing options...
Obi1-Cannabis Posted February 26, 2007 Author Share Posted February 26, 2007 that doesn't work, the get time thing... i managed a way arround witch doesn't use times and is more suited for what i'm doing...thanks anyway Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now