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.
You need attention to detail with XML. Compare your switch variable with the XML..
TIA, John _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

