Skip to main content
Inspiring
June 20, 2007
Question

XML flash instances

  • June 20, 2007
  • 1 reply
  • 242 views
I have created an app with a menu bar component. i am using an XML file to load the menu labels. this works fine but i dont know how to specify an action or instance in the XML. I am using the following code. How do i add actions or instances in the XML? All help apreciated
This topic has been closed for replies.

1 reply

Participating Frequently
June 20, 2007
I not sure i understand what you mean by "How do i add actions or instances in the XML?"
But the structure for your code code be as this :
1. Parse the XML into an Array or XMLList
2. then run an Case statement on the different label that you have

so for instance :
case "Edit" :
call your method"
break;
........