# Pixel text effect does not runs well

**URL:** https://forum.kirupa.com/t/pixel-text-effect-does-not-runs-well/331542
**Category:** flash
**Created:** [August 25, 2013, 4:19am UTC](https://forum.kirupa.com/t/pixel-text-effect-does-not-runs-well/331542 "2013-08-25T04:19:09Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![M\_Hanif\_Fa](https://avatars.discourse-cdn.com/v4/letter/m/ec9cab/32.png) [@M\_Hanif\_Fa](https://forum.kirupa.com/u/M_Hanif_Fa)
#### Post date: [August 25, 2013, 4:19am UTC](https://forum.kirupa.com/t/pixel-text-effect-does-not-runs-well/331542/1 "2013-08-25T04:19:09Z")

</div>

I’ve try to practice a tutorial in this page

> **[Pixel text effect in Actionscript 3](http://www.ilike2flash.com/2013/04/pixel-text-effect-actionscript-3.html)**
>
> In this post I will create a pixel text effect in Actionscript 3. I will use the Bitmapdata class to get the pixel data from the text, then ...

  
but when I try to run it, when I moue over the text, the text behind doesnot appear correctly.

So, I try to check my code and I found this:

```auto
this.bmd = new BitmapData(this.rects.right, this.rects.bottom, true, 0);    
bmd.draw(this.letters);    
for(this.i=this.rects.left; this.i<this.rects.right; i++){            
        for(this.j=this.rects.top; this.j<this.rects.bottom; j++){
            this.pixelValue = this.bmd.getPixel32(this.i,this.j); >>> return 0
            this.alphaValue = this.pixelValue >> 24 & 255;                
            if(this.pixelValue != 0){
                this.positions.push({xpos:this.i, ypos:this.j, alpha:(this.alphaValue/255)*1});
            }            
        }
    }    

```

How can I resolve this? or Is there any wrong code that I’ve made?  
NB: this the fla file

-Thanks-
