iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Flash Discussion Forum Flash design presents a limitless number of possibilities for your sites and designs. Discuss your Flash ideas, questions and issues here.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-07-2004, 10:26 AM
WebProWorld New Member
 
Join Date: Feb 2004
Location: Location, Location
Posts: 23
MidNite RepRank 0
Default XML Output

On my project I have a list of book types. My boss wants me to draw from an XML file the number of books according to type. For example, at the end of my button link to "Fiction" it should read the number of fiction books from the XML file they will provide.

Fiction (233)

My XML structure is like this:
Code:
<BOOKS>
     <FICTION>233</FICTION>
     <NONFICTION>143</NONFICTION>
<BOOKS>
I've searched and searched, I can find out how to PUT the information into the file, but how do I get it to be shown in Flash? That is, I want the "233" to be drawn dynamically from the XML file and listed in type on the screen. Any ideas?

Thanks!
Reply With Quote
  #2 (permalink)  
Old 12-12-2004, 02:06 PM
mtheory's Avatar
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Connecticut, US
Posts: 603
mtheory RepRank 2
Default

If the number is being put into the field manually then why not use a simple text file to hold the information.

Create a file books.txt

fiction=233&
&nonfiction=143&

Then create dynamyc fields in your Flash movie with variable assignments of fiction and nonfiction.

Flash action script in first fram of movie would be:

loadVariables ("books.txt","");

I would only use the XML option in a case where the actual titles and information were in the XML file and you got the number by counting the children contained in a particular node(ie: fiction).

You would then be able to retrieve information about each title from the XML file.
Reply With Quote
Reply

  WebProWorld > Site Design > Flash Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 08:02 PM.



Search Engine Optimization by vBSEO 3.3.0