XML to Object help 2004-03-03 - By Darron J. Schall
Back Don't kick yourself too hard for this one:
The XML load is asynchronous, so you get a callback when the load is complete. You need to put your trace statements in the onLoad so that pxml can be created before you try and see what's in it.
x.onLoad = function (){ pxml = this.toObject (); trace (pxml); // etc;
// Also, be sure to delete the xml object to save memory delete x; }
Then, go to Debug -> List Variables in the IDE when you test the movie to see what the object structure looks like. That will help you determine the path to what you're looking for.
-d
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Supported by Fig Leaf Software -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Lower Prices for Certified Training! Check out new lower prices for Certified Macromedia Training from Fig Leaf Software. Expand your skill set with courses in ColdFusion, Flash, Rich Internet Applications and .NET in the new year. Fig Leaf Software provides the highest caliber instruction at our training centers in Washington D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location.
Get the details at http://training.figleaf.com/ -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- To unsubscribe, e-mail: flashnewbie-unsubscribe@(protected) For additional commands, e-mail: flashnewbie-help@(protected)
|
|