Ask a Question related to Macromedia Flash Data Integration, Design and Development.
-
Rafa Soriano #1
XML Quick help
I am working on a simple flash interface, ussing the tutorial below.
[url]http://www.macromediahelp.com/flash/simple_flash_and_xml_sample/[/url]
It is all working expect for the fact that the dynamic fileds wont work inside
a movie clip. They just wont workin any other frame that it is not the first
one of the main time line.
Is there anything I can do so the dynamic fileds will pull the information
even if inside a movieclip?
Thank you
/ define an XML object called "my_xml"
my_xml = new XML();
// load data from an external XML file into "my_xml" object
my_xml.load("mapcontent.xml");
// what to do when data is loaded ... Call a function ("my_function" in this
case)
my_xml.onLoad = my_function;
// ignore "white spaces", text nodes that only contain white space are
discarded
my_xml.ignoreWhite = 1;
//
// function contents
function my_function() {
//Center "T" Numbers
lblt551.text = my_xml.firstChild.childNodes[0].attributes.dc_number_here;
lblt552.text = my_xml.firstChild.childNodes[1].attributes.dc_number_here;
lblt553.text = my_xml.firstChild.childNodes[2].attributes.dc_number_here;
lblt554.text = my_xml.firstChild.childNodes[3].attributes.dc_number_here;
lblt555.text = my_xml.firstChild.childNodes[4].attributes.dc_number_here;
lblt556.text = my_xml.firstChild.childNodes[5].attributes.dc_number_here;
lblt557.text = my_xml.firstChild.childNodes[6].attributes.dc_number_here;
lblt558.text = my_xml.firstChild.childNodes[7].attributes.dc_number_here;
lblt559.text = my_xml.firstChild.childNodes[8].attributes.dc_number_here;
lblt560.text = my_xml.firstChild.childNodes[9].attributes.dc_number_here;
lblt578.text = my_xml.firstChild.childNodes[10].attributes.dc_number_here;
lblt579.text = my_xml.firstChild.childNodes[11].attributes.dc_number_here;
lblt580.text = my_xml.firstChild.childNodes[12].attributes.dc_number_here;
lblt587.text = my_xml.firstChild.childNodes[13].attributes.dc_number_here;
lblt588.text = my_xml.firstChild.childNodes[14].attributes.dc_number_here;
lblt589.text = my_xml.firstChild.childNodes[15].attributes.dc_number_here;
lblt590.text = my_xml.firstChild.childNodes[16].attributes.dc_number_here;
lblt593.text = my_xml.firstChild.childNodes[17].attributes.dc_number_here;
lblt594.text = my_xml.firstChild.childNodes[18].attributes.dc_number_here;
lblt600.text = my_xml.firstChild.childNodes[19].attributes.dc_number_here;
lblt3800.text = my_xml.firstChild.childNodes[20].attributes.dc_number_here;
lblt3801.text = my_xml.firstChild.childNodes[21].attributes.dc_number_here;
lblt3802.text = my_xml.firstChild.childNodes[22].attributes.dc_number_here;
lblt3803.text = my_xml.firstChild.childNodes[23].attributes.dc_number_here;
lblt3804.text = my_xml.firstChild.childNodes[24].attributes.dc_number_here;
lblt3806.text = my_xml.firstChild.childNodes[25].attributes.dc_number_here;
lblt3807.text = my_xml.firstChild.childNodes[26].attributes.dc_number_here;
lblt3808.text = my_xml.firstChild.childNodes[27].attributes.dc_number_here;
lblt3809.text = my_xml.firstChild.childNodes[28].attributes.dc_number_here;
lblt3810.text = my_xml.firstChild.childNodes[29].attributes.dc_number_here;
lblt3892.text = my_xml.firstChild.childNodes[30].attributes.dc_number_here;
lblt3893.text = my_xml.firstChild.childNodes[31].attributes.dc_number_here;
lblt3894.text = my_xml.firstChild.childNodes[32].attributes.dc_number_here;
lblt3895.text = my_xml.firstChild.childNodes[33].attributes.dc_number_here;
lblt9407.text = my_xml.firstChild.childNodes[34].attributes.dc_number_here;
lblt9478.text = my_xml.firstChild.childNodes[35].attributes.dc_number_here;
lblt9479.text = my_xml.firstChild.childNodes[36].attributes.dc_number_here;
//Center GM
gmt551.text = my_xml.firstChild.childNodes[0].attributes.gm_mame_here;
gmt552.text = my_xml.firstChild.childNodes[1].attributes.gm_mame_here;
gmt553.text = my_xml.firstChild.childNodes[2].attributes.gm_mame_here;
gmt554.text = my_xml.firstChild.childNodes[3].attributes.gm_mame_here;
gmt555.text = my_xml.firstChild.childNodes[4].attributes.gm_mame_here;
gmt556.text = my_xml.firstChild.childNodes[5].attributes.gm_mame_here;
gmt557.text = my_xml.firstChild.childNodes[6].attributes.gm_mame_here;
gmt558.text = my_xml.firstChild.childNodes[7].attributes.gm_mame_here;
gmt559.text = my_xml.firstChild.childNodes[8].attributes.gm_mame_here;
gmt560.text = my_xml.firstChild.childNodes[9].attributes.gm_mame_here;
gmt578.text = my_xml.firstChild.childNodes[10].attributes.gm_mame_here;
gmt579.text = my_xml.firstChild.childNodes[11].attributes.gm_mame_here;
gmt580.text = my_xml.firstChild.childNodes[12].attributes.gm_mame_here;
gmt587.text = my_xml.firstChild.childNodes[13].attributes.gm_mame_here;
gmt588.text = my_xml.firstChild.childNodes[14].attributes.gm_mame_here;
gmt589.text = my_xml.firstChild.childNodes[15].attributes.gm_mame_here;
gmt590.text = my_xml.firstChild.childNodes[16].attributes.gm_mame_here;
gmt593.text = my_xml.firstChild.childNodes[17].attributes.gm_mame_here;
gmt594.text = my_xml.firstChild.childNodes[18].attributes.gm_mame_here;
gmt600.text = my_xml.firstChild.childNodes[19].attributes.gm_mame_here;
gmt3800.text = my_xml.firstChild.childNodes[20].attributes.gm_mame_here;
gmt3801.text = my_xml.firstChild.childNodes[21].attributes.gm_mame_here;
gmt3802.text = my_xml.firstChild.childNodes[22].attributes.gm_mame_here;
gmt3803.text = my_xml.firstChild.childNodes[23].attributes.gm_mame_here;
gmt3804.text = my_xml.firstChild.childNodes[24].attributes.gm_mame_here;
gmt3806.text = my_xml.firstChild.childNodes[25].attributes.gm_mame_here;
gmt3807.text = my_xml.firstChild.childNodes[26].attributes.gm_mame_here;
gmt3808.text = my_xml.firstChild.childNodes[27].attributes.gm_mame_here;
gmt3809.text = my_xml.firstChild.childNodes[28].attributes.gm_mame_here;
gmt3810.text = my_xml.firstChild.childNodes[29].attributes.gm_mame_here;
gmt3892.text = my_xml.firstChild.childNodes[30].attributes.gm_mame_here;
gmt3893.text = my_xml.firstChild.childNodes[31].attributes.gm_mame_here;
gmt3894.text = my_xml.firstChild.childNodes[32].attributes.gm_mame_here;
gmt3895.text = my_xml.firstChild.childNodes[33].attributes.gm_mame_here;
gmt9407.text = my_xml.firstChild.childNodes[34].attributes.gm_mame_here;
gmt9478.text = my_xml.firstChild.childNodes[35].attributes.gm_mame_here;
gmt9479.text = my_xml.firstChild.childNodes[36].attributes.gm_mame_here;
//Center Address
addt551.text = my_xml.firstChild.childNodes[0].attributes.dc_address_here;
addt552.text = my_xml.firstChild.childNodes[1].attributes.dc_address_here;
addt553.text = my_xml.firstChild.childNodes[2].attributes.dc_address_here;
addt554.text = my_xml.firstChild.childNodes[3].attributes.dc_address_here;
addt555.text = my_xml.firstChild.childNodes[4].attributes.dc_address_here;
addt556.text = my_xml.firstChild.childNodes[5].attributes.dc_address_here;
addt557.text = my_xml.firstChild.childNodes[6].attributes.dc_address_here;
addt558.text = my_xml.firstChild.childNodes[7].attributes.dc_address_here;
addt559.text = my_xml.firstChild.childNodes[8].attributes.dc_address_here;
addt560.text = my_xml.firstChild.childNodes[9].attributes.dc_address_here;
addt578.text = my_xml.firstChild.childNodes[10].attributes.dc_address_here;
addt579.text = my_xml.firstChild.childNodes[11].attributes.dc_address_here;
addt580.text = my_xml.firstChild.childNodes[12].attributes.dc_address_here;
addt587.text = my_xml.firstChild.childNodes[13].attributes.dc_address_here;
addt588.text = my_xml.firstChild.childNodes[14].attributes.dc_address_here;
addt589.text = my_xml.firstChild.childNodes[15].attributes.dc_address_here;
addt590.text = my_xml.firstChild.childNodes[16].attributes.dc_address_here;
addt593.text = my_xml.firstChild.childNodes[17].attributes.dc_address_here;
addt594.text = my_xml.firstChild.childNodes[18].attributes.dc_address_here;
addt600.text = my_xml.firstChild.childNodes[19].attributes.dc_address_here;
addt3800.text = my_xml.firstChild.childNodes[20].attributes.dc_address_here;
addt3801.text = my_xml.firstChild.childNodes[21].attributes.dc_address_here;
addt3802.text = my_xml.firstChild.childNodes[22].attributes.dc_address_here;
addt3803.text = my_xml.firstChild.childNodes[23].attributes.dc_address_here;
addt3804.text = my_xml.firstChild.childNodes[24].attributes.dc_address_here;
addt3806.text = my_xml.firstChild.childNodes[25].attributes.dc_address_here;
addt3807.text = my_xml.firstChild.childNodes[26].attributes.dc_address_here;
addt3808.text = my_xml.firstChild.childNodes[27].attributes.dc_address_here;
addt3809.text = my_xml.firstChild.childNodes[28].attributes.dc_address_here;
addt3810.text = my_xml.firstChild.childNodes[29].attributes.dc_address_here;
addt3892.text = my_xml.firstChild.childNodes[30].attributes.dc_address_here;
addt3893.text = my_xml.firstChild.childNodes[31].attributes.dc_address_here;
addt3894.text = my_xml.firstChild.childNodes[32].attributes.dc_address_here;
addt3895.text = my_xml.firstChild.childNodes[33].attributes.dc_address_here;
addt9407.text = my_xml.firstChild.childNodes[34].attributes.dc_address_here;
addt9478.text = my_xml.firstChild.childNodes[35].attributes.dc_address_here;
addt9479.text = my_xml.firstChild.childNodes[36].attributes.dc_address_here;
//Center Phone Number
telt551.text =
my_xml.firstChild.childNodes[0].attributes.dc_phone_number_here;
telt552.text =
my_xml.firstChild.childNodes[1].attributes.dc_phone_number_here;
telt553.text =
my_xml.firstChild.childNodes[2].attributes.dc_phone_number_here;
telt554.text =
my_xml.firstChild.childNodes[3].attributes.dc_phone_number_here;
telt555.text =
my_xml.firstChild.childNodes[4].attributes.dc_phone_number_here;
telt556.text =
my_xml.firstChild.childNodes[5].attributes.dc_phone_number_here;
telt557.text =
my_xml.firstChild.
Rafa Soriano Guest
-
I need Help Quick! - - PLEASE
Recently I used the CF7 updater and the report builder 'add-on' In putting in place the updater I could no longer access my admin pages to update... -
I need some help quick...
After making a graphic for screen printing, I will PDF it out to proof my seperations. This works great. I then need to make a "drawing" that shows... -
quick re help
Hi everyone I am pretty new to regex's, so I was happy when my text wrapping expression worked - for the most part. It messes up when I need... -
*Please Help Quick
Does anyone know of a way to restore a works processor document back to the way it was when I working with it before? A user on my computer had... -
QUICK HELP PLEASE
i would like to know,..how or if its possible to change the title of a pop up browser window i created,...i know how to do it through the "PAGE...



Reply With Quote

