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
You can open/play the swf file with Flash Player exe
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
Comments
You need to login to post a comment.
hi, can you share wihh downloadfile.php?
good, great job
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!
Hello eddyg,
Check this link for component : jigneshsony.limewebs.com/sony/
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?
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 :)
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!
very useful.....
thanks very much
God bless you..
nice good job
Amazing)))
Thank you.
It's very kind of you!
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...
Nice job, man. Really good
Jignesh, great job as always...
Great work! Thank you for sharing this very useful file. Is it possible to share the PHP script too? I would be very pleased.
for demo, you can see example on following link : jigneshsony.limewebs.com/sony/
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 :)
interesting.
nice work.