On 4/27/07, Firdosh Tangri <[EMAIL PROTECTED]> wrote:
> Here is the code for the RatingIconUpSkin
>
> public class RatingIconUpSkin extends Container
Okay, I don't know about that error, but, just generally, your skin
class doesn't have to be a Container. It can be a SpriteAsset.
Container is too heavy.
> private var upSkin:Image;
And this need not be a Flex Image. It can be a flash.display.Loader.
...
What does this line do?
[Embed (source="../../../assets/RankingUnSelectedUpSkin.png")]
Are you trying to embed an image and add it to the skin? This is how
it's supposed to be done:
[Embed (source="../../../assets/RankingUnSelectedUpSkin.png")]
var imageClass:Class;
...
addChild(new imageClass());