{"id":6,"date":"2013-10-20T15:26:00","date_gmt":"2013-10-20T15:26:00","guid":{"rendered":"http:\/\/subashselvaraj.com\/?p=6"},"modified":"2025-06-21T07:34:08","modified_gmt":"2025-06-21T07:34:08","slug":"save-image-from-flash-as2-project-using-flash-as3-and-php","status":"publish","type":"post","link":"https:\/\/subashselvaraj.com\/index.php\/2013\/10\/20\/save-image-from-flash-as2-project-using-flash-as3-and-php\/","title":{"rendered":"SAVE IMAGE FROM FLASH AS2 PROJECT USING FLASH AS3 AND PHP"},"content":{"rendered":"<div dir=\"ltr\" style=\"text-align: left;\"><span style=\"font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;\">There are lot of image capture scripts out there in AS2 but, when we try to capture large images using AS2 it becomes horrible due to huge memory utilization. This is due to pixel by pixel RGB value collection process of AS2.<\/span><br \/>\n<span style=\"font-family: Helvetica Neue, Arial, Helvetica, sans-serif;\"><br \/>\n<\/span><span style=\"font-family: Helvetica Neue, Arial, Helvetica, sans-serif;\">When I was into a project development, I suppose to do the image saving process much quicker. So I found a method to achieve that by creating a container in AS3 and loading AS2 swf &nbsp;inside that to save the image much more faster.<\/span><br \/>\n<span style=\"font-family: Helvetica Neue, Arial, Helvetica, sans-serif;\"><br \/>\n<\/span><span style=\"font-family: Helvetica Neue, Arial, Helvetica, sans-serif;\">This way I was successful in creating Image faster than AS2.<\/span><br \/>\n<span style=\"font-family: Helvetica Neue, Arial, Helvetica, sans-serif;\"><br \/>\n<\/span><span style=\"font-family: Helvetica Neue, Arial, Helvetica, sans-serif;\">Here you go for the source <a href=\"https:\/\/github.com\/sesubash\/SAVE_IMAGE_FROM_AS2_PROJECT_USING_AS3_AND_PHP\">https:\/\/github.com\/sesubash\/SAVE_IMAGE_FROM_AS2_PROJECT_USING_AS3_AND_PHP<\/a><\/span><br \/>\n<span style=\"font-family: Helvetica Neue, Arial, Helvetica, sans-serif;\"><br \/>\n<\/span><span style=\"font-family: Helvetica Neue, Arial, Helvetica, sans-serif;\"><b><u>Instructions:<\/u><\/b><\/span><br \/>\n<span style=\"font-family: Helvetica Neue, Arial, Helvetica, sans-serif;\">In the save.html file I have embedded AS3 swf &nbsp;using swfobject, passed the AS2 file name, image name to be saved and save php script(create.php in this case).<\/span><br \/>\n<span style=\"font-family: Helvetica Neue, Arial, Helvetica, sans-serif;\"><br \/>\n<\/span><span style=\"font-family: Helvetica Neue, Arial, Helvetica, sans-serif;\">Find the flash source files inside the folder. You &nbsp;can change the dimension of the rectangular area to be captured according to your project requirement in the file Main.as in the location SaveJpeg\/Main.as.<\/span><\/div>\n","protected":false},"excerpt":{"rendered":"<p>There are lot of image capture scripts out there in AS2 but, when we try to capture large images using AS2 it becomes horrible due to huge&#8230; <\/p>\n","protected":false},"author":1,"featured_media":223,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_mi_skip_tracking":false,"_themeisle_gutenberg_block_has_review":false},"categories":[7,6,2],"tags":[11,9],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/subashselvaraj.com\/index.php\/wp-json\/wp\/v2\/posts\/6"}],"collection":[{"href":"https:\/\/subashselvaraj.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/subashselvaraj.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/subashselvaraj.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/subashselvaraj.com\/index.php\/wp-json\/wp\/v2\/comments?post=6"}],"version-history":[{"count":2,"href":"https:\/\/subashselvaraj.com\/index.php\/wp-json\/wp\/v2\/posts\/6\/revisions"}],"predecessor-version":[{"id":208,"href":"https:\/\/subashselvaraj.com\/index.php\/wp-json\/wp\/v2\/posts\/6\/revisions\/208"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/subashselvaraj.com\/index.php\/wp-json\/wp\/v2\/media\/223"}],"wp:attachment":[{"href":"https:\/\/subashselvaraj.com\/index.php\/wp-json\/wp\/v2\/media?parent=6"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/subashselvaraj.com\/index.php\/wp-json\/wp\/v2\/categories?post=6"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/subashselvaraj.com\/index.php\/wp-json\/wp\/v2\/tags?post=6"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}