Hi, Your switch uses "page_name", but your XML says "pg_name".
Not sure about the other question at the moment, but it looks like you are repeating your self in the switch statement - if all your pages have DETAILS, do you need to switch? I am guessing you may have pages that differ?
HTH a little, Glen On 05/05/2010 13:49, John Singleton wrote:
Hi; I have this in an external xml file: <PAGE pg_name='index'> <DETAILS>This is some more of the home page.</DETAILS> </PAGE> My objective is to use a switch statement like this: switch (xmlda...@page_name.tostring()) { case "index": pageDetails = xmlData.DETAILS.toString(); case "contact": pageDetails = xmlData.DETAILS.toString(); } and pass a var to the swf so I can change the content (DETAILS) of the page based on the same. I know I'm going about this the wrong way, but I don't know how to do it correctly. Also, my switch statement doesn't work anyway. Please advise. TIA, John _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders