Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 09-02-2010, 05:40 PM   #1
Registered User
Join Date: Jul 2010
Posts: 15
Default Activating a pixel on the stage

What is the best way to simulate a pixel on the stage? So if I wish to make pixel x=50 y=150 black, what would be the best way? Should I make a new class, and make it 1x1 big? I'm using the flashdevelop IDE by the way and I'm using HaXe (Almost the same as AS3).
Saab is offline   Reply With Quote
Old 02-11-2011, 08:23 AM   #2
Registered User
Join Date: Sep 2006
Location: Cambridge/London UK
Posts: 48

One option would be to make a Bitmap object image the same size as the stage and directly alter the BitmapData inside of the Bitmap object. If you are referring to altering what is already on the stage you could copy it using the bitmap data draw method. This is quite an in efficient method though.

If you are compiling to Flash 10, may I recommend using Pixel bender for complex per-pixel operations. It works with both as3 and Haxe and is much more efficient.

Rebel-run for iPhone, made with Flash

Last edited by Televirtual; 02-11-2011 at 08:24 AM. Reason: Misspelling
Televirtual is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 12:42 PM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.