# AS3 and PHP - delete image from server

**URL:** <https://forum.kirupa.com/t/as3-and-php-delete-image-from-server/286017>\
**Category:** flash\
**Created:** [April 8, 2009, 8:09pm UTC](https://forum.kirupa.com/t/as3-and-php-delete-image-from-server/286017 "2009-04-08T20:09:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![edyakovich](https://avatars.discourse-cdn.com/v4/letter/e/8dc957/32.png) [@edyakovich](https://forum.kirupa.com/u/edyakovich)\
**Post date:** [April 8, 2009, 8:09pm UTC](https://forum.kirupa.com/t/as3-and-php-delete-image-from-server/286017/1 "2009-04-08T20:09:43Z")

</div>

Here is what I am trying to do…

Load an image into Flash from my server… (which I know how to do)

then if you click a button in flash, PHP will remove the image from my server.

I found an AS2 example that works perfectly!!!.. now I am trying to convert the example to AS3, but I am having some issues.

The AS3 version does not work because I dont understand how to properly connect PHP POST with the delete button etc…

View these 2 links for the code…

[http://www.ydesigned.com/test/AS3Attempt/AS2.txt](http://www.ydesigned.com/test/AS3Attempt/AS2.txt)  
[http://www.ydesigned.com/test/AS3Attempt/AS3.txt](http://www.ydesigned.com/test/AS3Attempt/AS3.txt)

The AS2 version works perfectly, but I need it to work in AS3.

Someone please help. I am new to AS3.

thank you!!!  
Ed
