Sep 24, 2007 #1 wrighterb Programmer Feb 20, 2007 80 US I have a txt document that I read urls from Text doc. &Link=http://www.blah.com?this=that&that=this It blows up HERE on my & join because of the text doc. What should I do?
I have a txt document that I read urls from Text doc. &Link=http://www.blah.com?this=that&that=this It blows up HERE on my & join because of the text doc. What should I do?
Sep 24, 2007 #2 kennethkawamoto Technical User Nov 19, 2002 2,710 GB Use XML Kenneth Kawamoto http://www.materiaprima.co.uk Upvote 0 Downvote
Sep 24, 2007 Thread starter #3 wrighterb Programmer Feb 20, 2007 80 US Never did it with xml any suggestion? Upvote 0 Downvote
Sep 24, 2007 #4 oldnewbie Technical User Dec 6, 2000 9,142 CA Try using %26 rather than the "&" character... Regards. FLASH HELP - OPENED FOR BUSINESS! TO GET YOUR OWN FREE WEBSITE HOSTING Upvote 0 Downvote
Try using %26 rather than the "&" character... Regards. FLASH HELP - OPENED FOR BUSINESS! TO GET YOUR OWN FREE WEBSITE HOSTING
Sep 24, 2007 Thread starter #5 wrighterb Programmer Feb 20, 2007 80 US I am getting this error Internal Error:No parameters or length to big... Any ideas what that is, it shows the whole url in the address bar thou Upvote 0 Downvote
I am getting this error Internal Error:No parameters or length to big... Any ideas what that is, it shows the whole url in the address bar thou
Sep 24, 2007 Thread starter #6 wrighterb Programmer Feb 20, 2007 80 US Hey hey ok I got the xml written <?xml version="1.0" encoding="UTF-8"?> <spins> <spin> <Name1>=George</Name1> <ImageLg1>=http://www.blah.com/images/bio1.jpg</ImageLg1></spin> </spins> How do I get Flash to read it Upvote 0 Downvote
Hey hey ok I got the xml written <?xml version="1.0" encoding="UTF-8"?> <spins> <spin> <Name1>=George</Name1> <ImageLg1>=http://www.blah.com/images/bio1.jpg</ImageLg1></spin> </spins> How do I get Flash to read it
Sep 24, 2007 #7 oldnewbie Technical User Dec 6, 2000 9,142 CA http://www.kirupa.com/developer/actionscript/xmldataflash.htm Regards. FLASH HELP - OPENED FOR BUSINESS! TO GET YOUR OWN FREE WEBSITE HOSTING Upvote 0 Downvote
http://www.kirupa.com/developer/actionscript/xmldataflash.htm Regards. FLASH HELP - OPENED FOR BUSINESS! TO GET YOUR OWN FREE WEBSITE HOSTING
Sep 24, 2007 Thread starter #8 wrighterb Programmer Feb 20, 2007 80 US Thanks also In my first frame of my old flash file I had this loadVariablesNum("SpinWheelTwelve.txt?noCache="+Math.floor(random(1000000)/random(1000)), 0); loadVariables("SpinWheelTwelve.txt?noCache="+Math.floor(random(1000000)/random(1000)), "Wheel"); How would I incorporate my no cache on the xml pull? Upvote 0 Downvote
Thanks also In my first frame of my old flash file I had this loadVariablesNum("SpinWheelTwelve.txt?noCache="+Math.floor(random(1000000)/random(1000)), 0); loadVariables("SpinWheelTwelve.txt?noCache="+Math.floor(random(1000000)/random(1000)), "Wheel"); How would I incorporate my no cache on the xml pull?
Sep 24, 2007 #9 oldnewbie Technical User Dec 6, 2000 9,142 CA Add it in the same way, to your .xml file's loading... Regards. FLASH HELP - OPENED FOR BUSINESS! TO GET YOUR OWN FREE WEBSITE HOSTING Upvote 0 Downvote
Add it in the same way, to your .xml file's loading... Regards. FLASH HELP - OPENED FOR BUSINESS! TO GET YOUR OWN FREE WEBSITE HOSTING
Sep 25, 2007 Thread starter #10 wrighterb Programmer Feb 20, 2007 80 US Ok am getting some stuff to show up Does this look right? I think there is something wrong here _root.Name1 = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue; _root.Name2 = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue; _root.Name3 = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue; _root.Name4 = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue; _root.Name5 = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue; _root.Name6 = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue; _root.Name7 = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue; _root.Name8 = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue; _root.Name9 = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue; _root.Name10 = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue; _root.Name11 = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue; _root.Name12 = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue; Name1_txt.text = _root.Name1; Name2_txt.text = _root.Name2; Name3_txt.text = _root.Name3; Name4_txt.text = _root.Name4; Name5_txt.text = _root.Name5; Name6_txt.text = _root.Name6; Name7_txt.text = _root.Name7; Name8_txt.text = _root.Name8; Name9_txt.text = _root.Name9; Name10_txt.text = _root.Name10; Name11_txt.text = _root.Name11; Name12_txt.text = _root.Name12; Upvote 0 Downvote
Ok am getting some stuff to show up Does this look right? I think there is something wrong here _root.Name1 = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue; _root.Name2 = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue; _root.Name3 = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue; _root.Name4 = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue; _root.Name5 = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue; _root.Name6 = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue; _root.Name7 = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue; _root.Name8 = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue; _root.Name9 = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue; _root.Name10 = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue; _root.Name11 = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue; _root.Name12 = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue; Name1_txt.text = _root.Name1; Name2_txt.text = _root.Name2; Name3_txt.text = _root.Name3; Name4_txt.text = _root.Name4; Name5_txt.text = _root.Name5; Name6_txt.text = _root.Name6; Name7_txt.text = _root.Name7; Name8_txt.text = _root.Name8; Name9_txt.text = _root.Name9; Name10_txt.text = _root.Name10; Name11_txt.text = _root.Name11; Name12_txt.text = _root.Name12;
Sep 25, 2007 Thread starter #11 wrighterb Programmer Feb 20, 2007 80 US Hey Hey I figured that out now I am working on images and links http://www.wrighter.com/hs/_level0.Wheel.Link1 _root.Image1 = this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue; txtImageURL1.text = _root.Image1; _root.Link1 = this.firstChild.childNodes[0].childNodes[2].firstChild.nodeValue; Link1.text = _root.Link1; Upvote 0 Downvote
Hey Hey I figured that out now I am working on images and links http://www.wrighter.com/hs/_level0.Wheel.Link1 _root.Image1 = this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue; txtImageURL1.text = _root.Image1; _root.Link1 = this.firstChild.childNodes[0].childNodes[2].firstChild.nodeValue; Link1.text = _root.Link1;
Sep 25, 2007 Thread starter #12 wrighterb Programmer Feb 20, 2007 80 US Ok I figured it all out, I do apprec the help !!!!! Now I am trying this I have all the dynamic text loading already,all good, works when I put just the text field out there in the time line. I am trying to load text now when function displayImage() { if(this>=that) { loadMovieNum(bio1.text,3); } And it load the text variable bio1=thisorthat into movie 3 at a certain location on the stage. Any Ideas? Thanks Upvote 0 Downvote
Ok I figured it all out, I do apprec the help !!!!! Now I am trying this I have all the dynamic text loading already,all good, works when I put just the text field out there in the time line. I am trying to load text now when function displayImage() { if(this>=that) { loadMovieNum(bio1.text,3); } And it load the text variable bio1=thisorthat into movie 3 at a certain location on the stage. Any Ideas? Thanks