# Xml menu DONE :)

**URL:** <https://forum.kirupa.com/t/xml-menu-done/38934>\
**Category:** Uncategorized\
**Created:** [January 1, 2004, 4:03am UTC](https://forum.kirupa.com/t/xml-menu-done/38934 "2004-01-01T04:03:11Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 7, 2004, 10:48pm UTC](https://forum.kirupa.com/t/xml-menu-done/38934/21 "2004-07-07T22:48:44Z")

</div>

yeah i managed to sort out the php script with a lil help from another forum. Its just that i tried the tut on here out put xml via mysql & php and it lays it out differently.

your gona hate me thou, one other thing, for the gallery version of your menu. I want the xml file to hold an info tag to with a description about the pic. But i just want a dynamic text field on the page but not in the actual button that your menu makes, and when you click on a button the info text will appear in the dy text field is this possible to do???

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 8, 2004, 12:58am UTC](https://forum.kirupa.com/t/xml-menu-done/38934/22 "2004-07-08T00:58:41Z")

</div>

yeah its possible…I’ll attach it later

I wonder how many times in this thread I said “Yeah, its possible” :trout:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 8, 2004, 8:37am UTC](https://forum.kirupa.com/t/xml-menu-done/38934/23 "2004-07-08T08:37:05Z")

</div>

lol, cheers hga77, your menu is wicked.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 9, 2004, 7:50pm UTC](https://forum.kirupa.com/t/xml-menu-done/38934/24 "2004-07-09T19:50:15Z")

</div>

Hi, Just a quick question about this menu, which I must admit rox my sox! I think i understand what the lines of code do and stuff, kind of at least. But ive exported it as an swf in mx2004 and it will only work as long as I dont export with Flash Player 7… any clue why?

Just curious

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 9, 2004, 8:18pm UTC](https://forum.kirupa.com/t/xml-menu-done/38934/25 "2004-07-09T20:18:52Z")

</div>

I really could’nt tell you. I havent used mx2004 yet…sorry

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 9, 2004, 9:13pm UTC](https://forum.kirupa.com/t/xml-menu-done/38934/26 "2004-07-09T21:13:50Z")

</div>

Ok, I think it has something to do with the new security features. I’ll try to figure it out, cause FP7 has some good ways of dealing with flv’s. If i figure it out, I’ll let you know… and if anyone else figures it out:P… let me know? 😛

Thanks y’all

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 12, 2004, 2:35pm UTC](https://forum.kirupa.com/t/xml-menu-done/38934/27 "2004-07-12T14:35:37Z")

</div>

My final version for this menu - v3

This version follows the same pattern as v2. So please read the thread before you ask any questions. You never know, you might find your answer 😉

Added v3 features:

- upto 3 level menu (top level, sub level, subsub level)
- extra configuration xml file. You can now setup the look n feel of the menu from outside flash. From the ‘menuConfig’ xml file, you can:

– set menu speed  
– set menu spacer  
– set color speed (speed of color transitions when rollOver/rollOut)  
– set item colors  
– set item delay (the time/speed at which the items pop-up on screen)

:hugegrin:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 12, 2004, 2:44pm UTC](https://forum.kirupa.com/t/xml-menu-done/38934/28 "2004-07-12T14:44:58Z")

</div>

cheers hga77, once again a superp menu.

On the gallery menu, how would i add a text field for a description of an image??? I have got a text filed, but it will only display the image path and nothing else.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 12, 2004, 2:56pm UTC](https://forum.kirupa.com/t/xml-menu-done/38934/29 "2004-07-12T14:56:10Z")

</div>

ok Ibeetles, which gallery you talking about, from which post? I think I know what you need. If you tell me which fla, i’ll do it now!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 12, 2004, 2:58pm UTC](https://forum.kirupa.com/t/xml-menu-done/38934/30 "2004-07-12T14:58:15Z")

</div>

its post #182 gallery\_v1. I keep getting undefined int he text box.

also im gona try and have a go at next & prev buts, i shall let you know how i get on.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 12, 2004, 4:00pm UTC](https://forum.kirupa.com/t/xml-menu-done/38934/31 "2004-07-12T16:00:24Z")

</div>

Ibeetles, I hope this is what you want 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 12, 2004, 4:18pm UTC](https://forum.kirupa.com/t/xml-menu-done/38934/32 "2004-07-12T16:18:11Z")

</div>

thats nearly there, is there anyway that i could have the picDesc information in the xml document rather then in a seperate txt file???

I’m creating the xml file via php, whcih grabs all the information from a mySql db.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 12, 2004, 4:21pm UTC](https://forum.kirupa.com/t/xml-menu-done/38934/33 "2004-07-12T16:21:14Z")

</div>

yes it is possible. Have you already coded the php? i.e. do you have an xml layout structure that I can look at?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 12, 2004, 4:30pm UTC](https://forum.kirupa.com/t/xml-menu-done/38934/34 "2004-07-12T16:30:13Z")

</div>

here is the php code i have, thou this is not for the gallery as i dont have the code here with me but this is an identical file.

```php
<? 
include("connect.php");

header("Content-type: text/xml"); 

$linkID = mysql_connect($host, $user, $pass) or die("Could not connect to host."); 
mysql_select_db($database, $linkID) or die("Could not find database."); 

$query = "SELECT * FROM players ORDER BY number, last_name, first_name"; 
$result = mysql_query($query, $linkID) or die("Data not found."); 

$xml_output = "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>
"; 
$xml_output .= "<menu>
"; 

	for ($x = 0; $x < mysql_num_rows($result) ; $x++){ 
		$row = mysql_fetch_assoc($result); 
		
$xml_output .= "	<item name =\"" . $row['first_name'] . "&#160;" . "&lt;b&gt;" . $row['last_name'] . "&lt;/b&gt;" . "\" number =\"" . $row['number'] . "\" pos =\"" . $row['pos'] . "\" apps_l =\"" . $row['apps_l'] . "\" goals_l =\"" . $row['goals_l'] . "\" apps_c =\"" . $row['apps_c'] . "\" goals_c =\"" . $row['goals_c'] . "\" yellow =\"" . $row['yellow'] . "\" red =\"" . $row['red'] . "\" apps_total =\"" . $row['apps_l'] . "\" >
"; 

		$xml_output .= "	</item>
"; 
	} 

	$xml_output .= "</menu>"; 

	print $xml_output; 

?>

```

You can see this working here [http://members.lycos.co.uk/lbeetles/bhfc0405/players.html](http://members.lycos.co.uk/lbeetles/bhfc0405/players.html)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 12, 2004, 4:50pm UTC](https://forum.kirupa.com/t/xml-menu-done/38934/35 "2004-07-12T16:50:36Z")

</div>

your php is currently outputing this xml layout:

```auto
<menu> 

       	<item name ="" pos ="" apps_l = "" goals_l ="" apps_c ="" goals_c ="">
	</item> 
   
</menu>

```

alot more attributes too…but i left them out.

so at the moment your php dosnt output allocated space for you description text. You would need to change you php code. I assume the description text is stored within the db? You would need to hard code this php so that you have another node (not attribute), within this node you would have your text.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 12, 2004, 4:53pm UTC](https://forum.kirupa.com/t/xml-menu-done/38934/36 "2004-07-12T16:53:45Z")

</div>

i will post later the code i am using for the gallery page itself rather then another file. Thanks for all your help on this hga77.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 12, 2004, 4:54pm UTC](https://forum.kirupa.com/t/xml-menu-done/38934/37 "2004-07-12T16:54:31Z")

</div>

no problem 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 12, 2004, 9:22pm UTC](https://forum.kirupa.com/t/xml-menu-done/38934/38 "2004-07-12T21:22:37Z")

</div>

Hi hga77, find atatched the gallery files i was talking about. I can’t get it to read the desc=“blah blah” bit of the xml file, any ideas how i would be able to manage this???

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 13, 2004, 3:21am UTC](https://forum.kirupa.com/t/xml-menu-done/38934/39 "2004-07-13T03:21:54Z")

</div>

“unexpected file format”

I’m on mx

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 13, 2004, 8:16am UTC](https://forum.kirupa.com/t/xml-menu-done/38934/40 "2004-07-13T08:16:46Z")

</div>

Here you go in mx format, cheers.

[Previous page](https://forum.kirupa.com/t/xml-menu-done/38934.md?page=1)

[Next page](https://forum.kirupa.com/t/xml-menu-done/38934.md?page=3)
