Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Actionscript / July 2008



Tip: Looking for answers? Try searching our database.

Export AS2 Drawing For Print?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
7Z7 - 25 Jul 2008 08:27 GMT
Hi, I'm new to the whole concept of drawing with code, and I would like to know
if anyone could help me.

I have made an actionscript drawing that draws itself when I test the movie,
how do I export the drawing as a print quality file (300 dpi), if I take a
picture from my desktop it's at 72 dpi, which does not work for what I'm trying
to do.
When I try to publish it as a PNG, it is just a blank picture.

Any help or suggestions are appreciated.

var xspeed:Number = .5;
var yspeed:Number = 2;
var xradius:Number = 25;
var yradius:Number = 75;
var xangle:Number = 0;
var yangle:Number = 0;
var i:Number = 0;
var rot:Number = 0;
onEnterFrame = function ()
{
    var shape:MovieClip = attachMovie("shape", "shape"+ i , i++);
    xangle += xspeed;
    yangle += yspeed;
    var xrad:Number = xangle*Math.PI/45;
    var yrad:Number = yangle*Math.PI/90;
    shape._x = Math.sin(xrad)*xradius+500;
    shape._y = Math.cos(yrad)*yradius+460;
    shape._rotation = rot++;
    shape._alpha = 50;
    shape._xscale = Math.tan(xrad)*10;
   
};
Travis Newbury - 25 Jul 2008 13:36 GMT
> Hi, I'm new to the whole concept of drawing with code, and I would like to know
> if anyone could help me.
[quoted text clipped - 29 lines]
>
>  };

If you google "create png using php" you will be rewarded tons of
examples.

--
Travis Newbury <http://travisnewbury.blogspot.com/> Flash Crap
Travis Newbury <http://travisnewbury.blogspot.com/> Flash Crap
Travis Newbury <http://travisnewbury.blogspot.com/> Flash Crap
Travis Newbury <http://travisnewbury.blogspot.com/> Flash Crap
wwscoper - 25 Jul 2008 23:39 GMT
Hey, check out http://www.joshuadavis.com/workshop/   He has instructions on
how to rip swf files for print, although the link doesn't seem to be working.
You need to run your flash file then right click (ctrl click on mac) and choose
print. Format for Adobe PDF and then hit ok. After you hit ok you will see pdf
in the bottom corner....click there and choose save pdf as postscript. You can
open the postscript file in illustrator and export from there.

Hope this helps.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.