Skip to main content
Participating Frequently
June 17, 2009
Question

Importing variables (information) from user maintained text files...

  • June 17, 2009
  • 1 reply
  • 511 views

Hello and thank you for taking the time to read my issue.

For now i am making a quick and dirty flash help source for my companies site.  Later on i will tweak I will pretty it up. I am going with two movie clips that i believe will be sufficient for now as seen the layout below....

                                                       ______________________________________

                                                       |  _____     ___________________________   |

                                                       |  |        |    |                                               |  |

                                                       |  |        |    |                                               |  |

                                                       |  |        |    |                                               |  |

                                                       |  |        |    |                                               |  |

                                                       |  |  1    |    |                   2                          |  |

                                                       |  |        |    |                                               |  |

                                                       |  |        |    |                                               |  |

                                                       |  |        |    |                                               |  |

                                                       |  |_____|   |___________________________|  |

                                                       |______________________________________|

MC_1 :       Is the selection menu.  I want to import from a text file the different help sections or catagories....eg.. Setup, Administration, Customizing, etc......Then i want to import from text files that are labelled and corrisponding to each section that will list the actual different help selections...eg..(Setup) would have sub menu options of System Requirements,Server Install, Client Install.  I would have these sub menus in listed in different text files for each section heading.

MC_2 :      Then when somene clicks on the submenu options like 'Server Install' in the given example Movie Clip 2 would import from yet another text file the actual help information in an HTML format

Questions:     For MC_1 I am not sure how I should go about creating it!  I assume I will be creating a MC inside of it, one for each variable it pulls in from the Header.txt file.....how do i do that when the number of variables can change?   And then it will pull in and create the sub menus one for each variable that it finds in its own text file, again the number can change?!?

From there i should have no problems having the sub menu, when clicked on, would pull the text info in html format into MC_2.

Any help would be greatly appreciated!

FG

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
June 17, 2009

instead of text files you should use xml files.  they're easier for users to maintain and much easier for you to parse and extract data.

you should be able to find tutorials by using google.

Participating Frequently
June 20, 2009

Thanks!

I did not think of useing the Tree from AS2 and xml that is much better.

FG

kglad
Community Expert
Community Expert
June 20, 2009

you're welcome.