Welcome to Dream.In.Code
Getting Help is Easy!

Join 132,013 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,811 people online right now. Registration is fast and FREE... Join Now!




Export as EPS (vector drawing) from a Flash movieclip

2 Pages V  1 2 >  
Reply to this topicStart new topic

Export as EPS (vector drawing) from a Flash movieclip

muso
post 21 Aug, 2007 - 05:44 AM
Post #1


D.I.C Head

**
Joined: 6 Jul, 2007
Posts: 51



Thanked 2 times
My Contributions


I'd like to check the feasibility of taking user generated output from a Flash movieclip (text and basic shapes to begin with), and output the content either directly to an EPS compatible file, or to a format that can be converted to EPS.

I know how to output data from Flash to make a bitmap file (reading the data pixel by pixel) and send the data to PHP to process it, but this is for signwriting so the output needs to be either a very high resolution (probably causing bandwidth problems) or scalable.

Does anyone here know of any options that I could check out?

Thanks in advance.

This post has been edited by muso: 21 Aug, 2007 - 11:41 PM
User is offlineProfile CardPM

Go to the top of the page

muso
post 21 Aug, 2007 - 11:44 PM
Post #2


D.I.C Head

**
Joined: 6 Jul, 2007
Posts: 51



Thanked 2 times
My Contributions


Another line of thought that I've just had is whether it's possible to export to a FLA, or if it's possible to save data from the movieclip so that it can be recreated in Flash so I can use the export image to EPS option there.

Does anyone have any ideas?
User is offlineProfile CardPM

Go to the top of the page

CyanBlue
post 24 Aug, 2007 - 11:16 AM
Post #3


D.I.C Head

Group Icon
Joined: 1 Sep, 2006
Posts: 78



Thanked 1 times
My Contributions


I'd love to be proven wrong, but I don't think any of those are possible yet...
User is offlineProfile CardPM

Go to the top of the page

muso
post 24 Aug, 2007 - 12:48 PM
Post #4


D.I.C Head

**
Joined: 6 Jul, 2007
Posts: 51



Thanked 2 times
My Contributions


QUOTE(CyanBlue @ 24 Aug, 2007 - 12:16 PM) *

I'd love to be proven wrong, but I don't think any of those are possible yet...


Exporting to a bitmap certainly is possible with getPixel, and that could be batch traced with an application, but this has technical limitations (although perhaps not prohibitively so...).

My feeling is that the only other way to do it with Flash is to only use the SWF to preview the drawing to the user when they design it, and to send back information on all of the text and shapes used and attributes like size, rotation, position and colour, and from that recreate the vector image from those attributes either: by hacking the information somehow into a SWF or FLA (SWFs can be created on the fly, but I don't know much about this process), and then export as an EMF; or to use another drawing package or other application and somehow automate using the information exported from Flash.
User is offlineProfile CardPM

Go to the top of the page

DilutedImage
post 26 Aug, 2007 - 12:09 AM
Post #5


D.I.C Addict

Group Icon
Joined: 20 Nov, 2006
Posts: 642



Thanked 6 times

Dream Kudos: 25
My Contributions


Well, you've certainly created quite a challenge! I think the key to executing this challenge is an understanding of the file-type you wish to write to. Without knowing how the file-type describes a shape, you can't know what data to send to the server.

However, I think what you've stated in your last post is the way to approach this problem. It would be very easy to save the object parameters out to a text file or database, and then read them back in to another Flash program that utilizes Flash's printing capabilities.
User is offlineProfile CardPM

Go to the top of the page

muso
post 26 Aug, 2007 - 02:41 AM
Post #6


D.I.C Head

**
Joined: 6 Jul, 2007
Posts: 51



Thanked 2 times
My Contributions


QUOTE(DilutedImage @ 26 Aug, 2007 - 01:09 AM) *
Well, you've certainly created quite a challenge!


Thanks smile.gif The challenge is what I love about programming; it makes the accomplishment that much more satisfying.

QUOTE(DilutedImage @ 26 Aug, 2007 - 01:09 AM) *
...and then read them back in to another Flash program that utilizes Flash's printing capabilities.


Now, that wasn't an option that I'd actually considered! I think it's worth investigating if that's a viable option, thanks. biggrin.gif

I'll post back later in the week, and update on how I'm getting on. In the meantime, any other suggestions would be most welcome.
User is offlineProfile CardPM

Go to the top of the page

pioSko
post 28 Aug, 2007 - 02:59 AM
Post #7


still.dreaming

Group Icon
Joined: 6 Jun, 2003
Posts: 1,888



Thanked 3 times

Dream Kudos: 225
My Contributions


Noting is impossible.. you just need the right tools I guess.

My train of thought on this topic goes like this:

1. All content inside the SWF can be tracked (ie. co-ordinates, size, colour)... Therefore that info can be output(ed?).
2. If info needs to be output then it's better to create it dynamically (AS) and all data stored automatically in a variable ready for output.
3. Will most probably need to send to PHP or similar.
4. External code (PHP, ASP etc) converts to EPS. We know that PHP can do PDF without a hiccup, so why not EPS??
5. PDF's save vector information... EPS similar to PDF... Export of Flash vectors POSSIBLE to EPS IF external software allows.
User is offlineProfile CardPM

Go to the top of the page

muso
post 28 Aug, 2007 - 03:22 AM
Post #8


D.I.C Head

**
Joined: 6 Jul, 2007
Posts: 51



Thanked 2 times
My Contributions


Thanks again. I still need to find if Flash printing will help, but I know that they will want to output to a vector format of some kind also. At the moment I'm experimenting to see if I can get SVG output that resembles text in Flash - something not too dissimilar to one of these:

http://www.mainada.net/inputdraw
http://www.artificialcolors.com/experiments/flash2EPS.html

Incidentally, I'm trying out with SVG because it seems to be an open format, and perhaps is more flexible. At this point, I'm still unsure which is the better option to go for: EPS or SVG.
User is offlineProfile CardPM

Go to the top of the page

pioSko
post 28 Aug, 2007 - 05:48 AM
Post #9


still.dreaming

Group Icon
Joined: 6 Jun, 2003
Posts: 1,888



Thanked 3 times

Dream Kudos: 225
My Contributions


SVG is a good idea, actually.
However, what do you intend to use the EPS/SVG for?

If for print, then SVG won't cut it. I've tried open software that worked with SVG but had problems with colour and printer support.
User is offlineProfile CardPM

Go to the top of the page

muso
post 28 Aug, 2007 - 06:05 AM
Post #10


D.I.C Head

**
Joined: 6 Jul, 2007
Posts: 51



Thanked 2 times
My Contributions


QUOTE(pioSko @ 28 Aug, 2007 - 06:48 AM) *

SVG is a good idea, actually.
However, what do you intend to use the EPS/SVG for?

If for print, then SVG won't cut it. I've tried open software that worked with SVG but had problems with colour and printer support.


With SVG my thoughts were that it was a means to get something out - i.e. thinking that they could (batch) convert it to AI or EPS (these are formats that they know that they can work with).

To answer your other question, it isn't so much for printing as it is for cutting (masks), so any curves need to be exact, and shapes can't have an incomplete border; it's for creating signs and basic adverts for vehicles, so accuracy in the scaling is rather important. I haven't yet seen the process in action, which would probably help.

What kind of problems have you encountered printing with SVG?
User is offlineProfile CardPM

Go to the top of the page

pioSko
post 29 Aug, 2007 - 03:43 AM
Post #11


still.dreaming

Group Icon
Joined: 6 Jun, 2003
Posts: 1,888



Thanked 3 times

Dream Kudos: 225
My Contributions


Incorrect colours.
Printers not compatible. (that's what I was told at the printers).
Once I had artifacts... badly redrawn elements.
User is offlineProfile CardPM

Go to the top of the page

muso
post 29 Aug, 2007 - 04:05 AM
Post #12


D.I.C Head

**
Joined: 6 Jul, 2007
Posts: 51



Thanked 2 times
My Contributions


QUOTE(pioSko @ 29 Aug, 2007 - 04:43 AM) *

Incorrect colours.
Printers not compatible. (that's what I was told at the printers).
Once I had artifacts... badly redrawn elements.


Thanks for the head's up smile.gif

Nice site, btw wink2.gif
User is offlineProfile CardPM

Go to the top of the page

2 Pages V  1 2 >
Fast ReplyReply to this topicStart new topic
Time is now: 11/21/08 04:46AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month