flash xml text box
- Started
- Last post
- 13 Responses
- Drno
Hello all,
i've just started digging in xml and flash text box and was wondering if you could help me a bit,I want to a text box in flash to display and xml msg.
the problem is that it only displays the first block but not the second one, i
if anyone has a template already done, please hook it upthis is the xml,
http://pastebin.com/m1513c61f
this is the actionscript
http://pastebin.com/m450e1461
- woodyBatts0
make sure your text box is set to "multiline"
- Fariska0
the xml is ok
if you want to show the content on the second part of the xml on the SAME box you have to do like this now:
http://pastebin.com/m5990c8d2
- Drno0
its already set to multiline,
it just that the second child/node/bs.. don't display
- rson0
it does not look like you are counting through the nodes or the array.
- flashbender0
#
_root.company = this.firstChild.childNodes[1].ch...
#
_root.slogan = this.firstChild.childNodes[1].ch...
#
_root.titles = this.firstChild.childNodes[1].ch...instead of ...childNodes[0]....
- bah... ignore thatflashbender
- * wishing you could delete your own postsflashbender
- Drno0
ok, letme rephrase this,
is there a good way to make an xml text box with an easy structure like this--date
---text
----------------date
---text
----------------date
---text
--------------:)
- maximillion_0
do yr xml like this
it has a mina cointainer and a head item saying something about the doc. In this case the number of items
- maximillion_0
and yr AS like this
- rson0
so something like this
http://pastebin.com/m54b76b8ethen attach the mainText holder and rename with that for loop
- Drno0
thank you all, I will try to sort out all your help and see where i'm doing something wrong
thanks all
- maximillion_0
if yr feeling extra fruity check out http://www.sephiroth.it/file_det…
this will parse an xml object into an object in AS
- gosche0
and check that: http://swxformat.org/
- Drno0
sorry for bringing this thread back to life
but does anyone knows a good "flash cms" program
thanks