Follow us on Twitter!
You cannot teach a man anything; you can only help him find it within himself. - Galileo
Thursday, May 05, 2016
Navigation
Home
 Find:
 Information:
Learn
Communicate
Submit
Shop
Challenges
 Exploit:
 Programming:
 Think:
 Track:
 Patch:
 Other:
 Need Help?
Other
Members Online
Total Online: 30
Guests Online: 26
Members Online: 4

Registered Members: 93531
Newest Member: ravivarmagsi
Latest Articles
View Thread

HellBound Hackers | Computer General | Programming

Author

Actionscript 3 Bitmap of screen selection


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 06-11-09 02:08
I have a Flash project for school and I would like to detect collision through checking to see if a pixel is black around the player. I have looked all over and I cannot seam to implement what they describe. I know that flash is capable of getting a bitmap of the screen can anyone help me?
Author

RE: I should be shot


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 06-11-09 02:57
I started searching again. And I found it

Code

var scr:BitmapData = new BitmapData(stage.stageWidth,.stage.stageHeight);
scr.draw(stage);
var color:Number=scr.getPixel(x:int, y:int);





Sorry for the waste of DB space

Edited by on 06-11-09 02:58