Search Results

Search found 2 results on 1 pages for 'ponty'.

Page 1/1 | 1 

  • Mask image does not appear on the screen

    - by Ponty
    I have imported to the library two images and have given them the custom class names MaskImage and MaskedImage. Then i write the code: package { import flash.display.*; public class MaskDemo extends Sprite { // Properties private var sprMaskedImage:Sprite; private var sprMaskImage:Sprite; private var bmMaskedImage:Bitmap; private var bmMaskImage:Bitmap; // Constructor public function MaskDemo() { do_magic(); } // Methods private function do_magic():void { bmMaskedImage = new Bitmap(new MaskedImage(0, 0)); bmMaskImage = new Bitmap(new MaskImage(0, 0)); sprMaskedImage = new Sprite(); sprMaskedImage.addChild(bmMaskedImage); sprMaskImage = new Sprite(); sprMaskImage.addChild(bmMaskImage); sprMaskedImage.mask = sprMaskImage; this.addChild(sprMaskImage); } } } But it does not appear anything on the display. Any ideas why is happening that?

    Read the article

  • How to automatically include a number of images in the SWF file?

    - by Ponty
    Hi, i'm trying to include a number of images in my SWF file not by loading them but by embedding them in the SWF itself. I found the following instruction to do that: [Embed(source="../graphics/images/ss0.png")] private var SS0:Class; Basically, i want to embed a different number of images each time. Is there a way to do that automatically (let's say inside a for loop) or do i have to type manually this instruction for each image i want to include?

    Read the article

1