Easy ColorPicker for everything at stage

Posted by Den Ivanov on May 24th, 2007

How to get color for any pixel at stage, including Sprites, video, Bitmaps etc...

Easy. Just 6 lines of code. Easy ColorPicker for everything at stage

var pickerBMP:BitmapData = new BitmapData(1,1,false,0x0);
stage.addEventListener(MouseEvent.MOUSE_MOVE,checkColor);
function checkColor(e:Event) {
pickerBMP.setPixel(0,0,0xFFFFFF); // enter background color of your SWF
pickerBMP.draw(stage,new Matrix(1,0,0,1,-mouseX,-mouseY));
trace (pickerBMP.getPixel(0,0));
}

PARK in Adobe Edge

Posted by Den Ivanov on May 23rd, 2007

PARK in Adobe Edge

OMG! PARK latest work (Instinct.ru) listed in Adobe EDGE!!! Great news!!!

StarCraft 2 officially announced.

Posted by Den Ivanov on May 20th, 2007

StarCraft 2 officially announced.

Blizzard announce StarCraft II. Lovely trailer, screenshots and game art.

New Transformers trailer

Posted by Den Ivanov on May 19th, 2007

New 'Transformers' trailer just awesome. Cant wait to see this fantastic movie in cinema!

HD: 480p 720p 1080p

dont miss them. they are really amazing!!!

Export classes to another frame – bug or feature?

Posted by Den Ivanov on May 18th, 2007

Looks like there problem with creating preloaders for complex flash applications in Flash CS3. When we export Classes to frame other then 1, we have some problems with library assets graphics. classes are here bu graphics doesnt shown. Looks like not only me have this problem (post about preloaders at hiddenresource)

But looks like we have solution now, Denis Kolyako find workaround for preloading problem (russian blog). Source here.

in short:

use

var programClass:Class = loaderInfo.applicationDomain.getDefinition(”Program”) as Class;
var program:Sprite = new programClass() as Sprite;
addChild(program);

instead of

var program:Program = new Program();
addChild(program);

I test this. it work. Maybe there is easy way. I check help, Google and dont find another way. If you know how to make it better, please comment.

Огромные суммы, продать часы в москве

Wordpress Theme by Tech Replies
Copyright © 2007 Den Ivanov blog.. All rights reserved.