Hi,
I would like to know if I have to dispose an image in AS3/Flex when using the EMBED-tag:
When I addChild this class and remove it via removeChild, do I have to dispose this or is this unnecessary? I just ask because it uses the Bitmap-class and under normal circumstances you have to dispose it for the garbage collector.Code:[Embed(source="../../../../../assets/interface/pause/cancel_btn_off.png")] public static const CancelOffBtn:Class; private var cancelOffBtn:Bitmap = new Library.CancelOffBtn(); addChild(cancelOffBtn);
Or is there another way to embed images without the Bitmap class? I just ask because I'm new to Flex and have problems embedding my stuff into my game. Thank you very much.