Question
getting info on objects loaded via xml
Hello:
i am a beginner/intermediate as3 coder, and i am stuck on something related to objects loaded via XML.
i am able to load JPEG images onto a simulated "shelf", but i am trying to arrange them on the shelf (like a store shelf) so that each new item is placed directly next to the previous item as they load. i can get it to work on a very basic level by specifying the spacing between items manually betwen the code, but to makre this reuseable and efficient, the ideal is to have the "next" object loaded be placed on the shelf based on the width of the previous object. but when i try to access the width of the object that is loaded via the imageLoader, i can;t find it. if i trace the image loader wifth, it is 0; i have tried several ways to name the object as it loads and then get/save its dimensions somehow, but i am not having any luck. i use all the Lynda titles and i also use some of the better books, but i just can;t seem to solve this.
any hellp would be appreciated.
thank you.
i am a beginner/intermediate as3 coder, and i am stuck on something related to objects loaded via XML.
i am able to load JPEG images onto a simulated "shelf", but i am trying to arrange them on the shelf (like a store shelf) so that each new item is placed directly next to the previous item as they load. i can get it to work on a very basic level by specifying the spacing between items manually betwen the code, but to makre this reuseable and efficient, the ideal is to have the "next" object loaded be placed on the shelf based on the width of the previous object. but when i try to access the width of the object that is loaded via the imageLoader, i can;t find it. if i trace the image loader wifth, it is 0; i have tried several ways to name the object as it loads and then get/save its dimensions somehow, but i am not having any luck. i use all the Lynda titles and i also use some of the better books, but i just can;t seem to solve this.
any hellp would be appreciated.
thank you.