get color through getPixel method: import flash.display.BitmapData; var mc:MovieClip = this.attachMovie("mc", "mc2", 1); var bmp:BitmapData = new BitmapData(mc._width, mc._height, false); bmp.draw(mc); color = bmp.getPixel(mc._x, mc._y); trace(color.toString(16));
[]'s Leandro Amano On 5/10/07, Danny Kodicek <[EMAIL PROTECTED]> wrote:
> ...I am wanting to run a color of instance test. I am > wondering if I can do this? > > attachMovie("shapes","shapes",num); > > if( shapes /*color*/ == 0x333333){ > // action(s) > } > > // this is sudo code but basically I want to know if I can > test for color. A library symbol doesn't have a colour - what exactly are you trying to do? Danny _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
-- -- Leandro Amano Digital Bug Chief Creative Officer Adobe Certified Expert Adobe Certified Instructor Adobe User Group Leader _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com