Alter bitmapdata

I place an image on the scene and via copypixels I place another (copy) bitmap on the scene.
Then I make some modifications on te copy like scaling/collors and try to save it to a php file.

What happens is this, the copy is succesfully transfert to php BUT without any modifications…
The php saves the image with the right sizes, but the content is the original size from the copy…no scaling, no collors, no nothing is altered…
Can anyone help me with this one ?

eindClip is the bitmap (copy) where I did the modifications


function opslaan(event:MouseEvent):void
{
    var eindImg:Bitmap = Bitmap(getChildByName("eindClip"));
    var eind:BitmapData = new BitmapData(eindImg.width, eindImg.height, true);
    eind.draw(eindImg)
    var byteArray:ByteArray = new JPGEncoder().encode(eind);
    //etc..
}