A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: load text of my nodes in one dynamic text field

  1. #1
    Older Member jankratochvil's Avatar
    Join Date
    Nov 2001
    Location
    CZECH
    Posts
    977

    load text of my nodes in one dynamic text field

    Hi all!
    This weekend i spend my time on work with import my xlm file in one text field.
    [B]Yes, I am still learning about XML --> Flash.
    I can differentiate nodeTypes and extract what i want, but now can I do it manually.
    With this I am not satisfied.
    I have tried some condition statements (for), but i need some help or link for more informations.

    I am working now on (maybe for You) simple thing:
    Import an menu card in XML in flash.

    I fighted on this the whole weekend.
    Please see my XML file and advise.
    With white spaces for better vieving: http://www.flashmedia.cz/xml/puh/jid...ith_spaces.xml
    Without white spaces for import in Flash: http://www.flashmedia.cz/xml/puh/jidelni_listek.xml

    My target is import this file in one text field and modify separately the text, for example:
    Text of <main_node> will be BOLD and in Arial - text of other tags ITALIC and Verdana.

    Thanks for any suggestion.

    If will You really help me, then please see this zipped fla: http://www.flashmedia.cz/xml/puh/imp...l_20030427.zip

    In this file I tried import the file jidelni_listek.xml.
    The dynamic field _root.my_XML has variable "name".
    Through this variable i have tested the import.
    When You export it (Ctrl+Enter) in Flash, You will see in output number of nodes and names of nodes.

    In textfield You will see "Name of main node is: main_node"

    I work in Flash MX.
    Thank Hans

  2. #2
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    I looked at your fla and made some changes, so it can parse one of my files. Have a look. Also you had a var and a name for your textfield. That doesn't work. And one of your xml files froze my browser.
    - The right of the People to create Flash movies shall not be infringed. -

  3. #3
    Older Member jankratochvil's Avatar
    Join Date
    Nov 2001
    Location
    CZECH
    Posts
    977
    Originally posted by cancerinform
    I looked at your fla and made some changes, so it can parse one of my files. Have a look. Also you had a var and a name for your textfield. That doesn't work. And one of your xml files froze my browser.
    Hi cancerinform, many thanks for your desinterested help.
    I will test it and then I will send a p. word.

    I have written for You longer answer (30 min. writing), but i have lost my connection with flashkit.com and all of my Post Reply was lost too.

    damn

    Many thanks for Your know how.

    Hans

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center