开发者

Dynamically loaded images not displaying properly in Flash

开发者 https://www.devze.com 2023-02-16 05:46 出处:网络
I\'m creating a banner advertisement in Flash.It pulls all information from an XML file.Images for each product are also loaded externally.Everything is working fine except for 1 thing.

I'm creating a banner advertisement in Flash. It pulls all information from an XML file. Images for each product are also loaded externally. Everything is working fine except for 1 thing.

I have an image separator i'm using as a background for each product container to lend a bit of separation to each product. But when I try to add it using code it's only added to the last item. Doesn't matter if it's 10 items or 2 items...it's only being added to the last one开发者_开发问答 and i'm not sure why. Anyways, i've zipped up the associated files and put it on my webserver. I'm using the Tweener class and have included that in the archive as well. Any help in the matter would be much appreciated.

Here's a link to the archive : Project Files


I think i have previous version of flash, and cannot open the fla file. But my guess is that you creating the image separator object and than using addChild add it to all 10 items. And it start to add this (one) object in turn to every item. And finally it become a child of the last item. Is this is you problem. you just need to create different separators for every item.

0

精彩评论

暂无评论...
验证码 换一张
取 消