Current location: Hot Scripts Forums » General Web Coding » Flash & ActionScript » using xml to define a navbar


using xml to define a navbar

Reply
  #1 (permalink)  
Old 08-26-09, 07:31 AM
possum87 possum87 is offline
New Member
 
Join Date: Aug 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Hazard using xml to define a navbar

Hiya, I'm a bit new to actionscript and xml but I've been reading a tutorial book and I'm now trying to make a navigation bar where the number of buttons, their labels and links are defined by an XML document.

I'm using the exercise material supplied with my book as a basis, found at Learning ActionScript 3.0 under chapter 14.

These materials include a submenu, which I dont want. So far I've managed to stop the submenu appearing, the correct number of buttons and labels appear, but I can't get the buttons to take their links from the XML document.

The material is set up so that there is a navigationbar.as which builds the bar, a LoadXML.as which loads the xml, a LoadURL.as, and then two files to define the buttons.

One is MainMenuButton.as which defines the navigation bar, giving each button its position and label, and telling the submenu where to appear.

The second is SubMenuButton.as which defines the submenu buttons, their number, label and links.

The SubMenuButton file draws its links from the XML Document, but I can't, no matter what I try, get the MainMenuButton.as file to draw the links instead. I have currently got the buttons in the MainMenuButton.as to open up a link defined within the .as file, so the functionality is correct, but I cant get them to read anything from the XML.

Please help, I've been stumped on this same problem for over a week.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks

Tags
actionscript, navigation, xml


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
XML PHP MYSQL- Writing to a xml file punky79 PHP 8 05-18-09 05:21 AM
Mental XML and attributes mogant0 PHP 2 05-16-09 09:30 AM
difference between typedef and #define KSB C/C++ 1 10-09-06 05:34 PM
reading a remote xml file into a variable bdee1 PHP 1 12-20-05 01:32 PM
javascripting and XML Christoff JavaScript 1 06-23-04 06:44 AM


All times are GMT -5. The time now is 12:30 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.