atoyebi9381
05-12-2010, 07:22 PM
I am using MXMLto create drop down menus and AS£ for other elements as the background. The MXML drop down works but debugging gives me this:"unable to bind to property 'last' on class 'XML' (class is not an IEventDispatcher)".
Also the AS3 does not display at all.
XML:
<?xml version="1.0" encoding="utf-8"?>
<database>
<enrollment name="Student">
<first code="JE" name="Jenny">
<last name="Smith" />
<last name="Jones" />
</first>
<first code="JO" name="John">
<last name="Williams" />
<last name="Brown" />
<last name="Green" />
</first>
<first code="RA" name="Rachel">
<last name="Scott" />
<last name="Miller" />
</first>
<first code="PH" name="Phil">
<last name="Myer" />
</first>
<first code="JI" name="Jill">
<last name="Phelps" />
</first>
</enrollment>
<enrollment name="Faculty">
<first code="JN" name="Jean">
<last name="Gray" />
</first>
<first code="RO" name="Rod">
<last name="King" />
<last name="Davies" />
<last name="Larson" />
</first>
<first code="DE" name="Dennis">
<last name="Berger" />
</first>
<first code="RA" name="Rachel">
<last name="James" />
</first>
<first code="NI" name="Nick">
<last name="Morales" />
<last name="Fulton" />
</first>
</enrollment>
</database>
Also the AS3 does not display at all.
XML:
<?xml version="1.0" encoding="utf-8"?>
<database>
<enrollment name="Student">
<first code="JE" name="Jenny">
<last name="Smith" />
<last name="Jones" />
</first>
<first code="JO" name="John">
<last name="Williams" />
<last name="Brown" />
<last name="Green" />
</first>
<first code="RA" name="Rachel">
<last name="Scott" />
<last name="Miller" />
</first>
<first code="PH" name="Phil">
<last name="Myer" />
</first>
<first code="JI" name="Jill">
<last name="Phelps" />
</first>
</enrollment>
<enrollment name="Faculty">
<first code="JN" name="Jean">
<last name="Gray" />
</first>
<first code="RO" name="Rod">
<last name="King" />
<last name="Davies" />
<last name="Larson" />
</first>
<first code="DE" name="Dennis">
<last name="Berger" />
</first>
<first code="RA" name="Rachel">
<last name="James" />
</first>
<first code="NI" name="Nick">
<last name="Morales" />
<last name="Fulton" />
</first>
</enrollment>
</database>