alert This appears to be a flash file, you cannot see a preview because flash player is no longer supoorted in browsers, but you can still download the file to study it's source code.
You can open/play the swf file with Flash Player exe
user jigneshsony
jigneshsony (3)

Scale Image and Export it as PNG - Flash AS3

This is a example like we can scaleX, scaleY,Rotate loaded swf and also Export it as a PNG format file.
See "listing URL" for a working sample.

Listing url: jigneshsony.limewebs.com/sony/
1536 downloads, 23520 views

flash as3 rotate scalex scaley export png image swf dynamic create


Download (597.90 KB)

Comments

You need to login to post a comment.

user natavi
natavi 14 years ago

hi, can you share wihh downloadfile.php?

user awaischamp
awaischamp 14 years ago

good, great job

user eddyg
eddyg 15 years ago

Sorry man, couldn't take your offer of spliting the cost of a US$300 component just to use this example. I wrote the whole rotate and drag a movieclip from zero. Thanks anyway!

user jigneshsony
the listing author jigneshsony 15 years ago

Hello eddyg,
Check this link for component : jigneshsony.limewebs.com/sony/

user eddyg
eddyg 15 years ago

Hello, I'm trying to use your example but it asks for a greensock library. At greensock.com/transformmanageras3 I see that they sell this library for US$ 300.... so do I have to buy thay library to use your example?

user jigneshsony
the listing author jigneshsony 15 years ago

Hello FushigiNeko,

for save image on server use following code :
-----------------------------
<?php
if ( isset ( $GLOBALS["HTTP_RAW_POST_DATA"] ))
{
$img = $GLOBALS["HTTP_RAW_POST_DATA"];
$file = fopen($_GET['name'],"w");
fwrite($file,$img);
fclose($file);
} else echo 'An error occured.';

?>
-------------------
Thanks :)

user FushigiNeko
FushigiNeko 15 years ago

This is awesome, thank you for sharing.
But maybe you could help me with a problem that I am having, I love the system that you have created, but how would I save the PNG to my web server instead of on the clients hard drive? I've never taken on a project like like this before, and I'm just not sure where to start. Thanks!

user amituser
amituser 15 years ago

very useful.....
thanks very much
God bless you..

user uvinod20
uvinod20 15 years ago

nice good job

user bataa_cld2
bataa_cld2 15 years ago

Amazing)))

user Tschiffeli
Tschiffeli 15 years ago

Thank you.
It's very kind of you!

user jigneshsony
the listing author jigneshsony 15 years ago

Hi Tschiffeli,
following is a PHP script of this example...
--------------------------------------- ------
<?php

if ( isset ( $GLOBALS["HTTP_RAW_POST_DATA"] )) {

// get bytearray
$img = $GLOBALS["HTTP_RAW_POST_DATA"];

// add headers for download dialog-box
header('Content-Type: application/png');
header('Content-Length: '.strlen($img));
header("Content-Disposition: attachment; filename=".$_GET['name']);
echo $img;

} else echo 'An error occured.';

?>
---------------------
Enjoy...

user jrgarou
jrgarou 15 years ago

Nice job, man. Really good

user dilipyava
dilipyava 15 years ago

Jignesh, great job as always...

user Tschiffeli
Tschiffeli 15 years ago

Great work! Thank you for sharing this very useful file. Is it possible to share the PHP script too? I would be very pleased.

user jigneshsony
the listing author jigneshsony 15 years ago

for demo, you can see example on following link : jigneshsony.limewebs.com/sony/

user jigneshsony
the listing author jigneshsony 15 years ago

Hi,
You can scaling and moving object but cannot export PNG on live cause for export PNG a PHP script call and here some problem so want to export PNG you need to download files and run it from your local PHP server.if u have any doubt then tell me...

Thanks :)

user _webDesigner_
_webDesigner_ 15 years ago

interesting.
nice work.