I want to
reference a form on my stage by
it's ID which I am pulling from an XML document.
var myForm:Form = myXML.category.@formID as Form;
Can someone tell me why this isn't working.
Looks like you're trying to cast the @formID String to a Form. If @formID corresponds with the id of an existing form id, you can use array sytax to get to it with the String.
var myForm:Form = this[myXML.category.@formID] as Form;
Retrieving data ...