Customisable Printing by PHP from Flash [message #172517] |
Mon, 21 February 2011 14:52  |
Singlish King
Messages: 5 Registered: February 2011
Karma: 0
|
Junior Member |
|
|
Customisable Printing by PHP from Flash
=======================================
my friend wishes to have a website that
allows users to choose facial expressions
(e.g. different styles of eyes, different
noses, different hairstyle, etc.) from
client side Flash swf and have the result
printed. i suppose the client side PHP
has to do something smart in order to
achieve this.
how can this be done?
thanks for your help.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Customisable Printing by PHP from Flash [message #172617 is a reply to message #172613] |
Tue, 22 February 2011 08:09   |
Erwin Moller
Messages: 228 Registered: September 2010
Karma: 0
|
Senior Member |
|
|
On 2/22/2011 6:18 AM, Jerry Stuckle wrote:
> On 2/22/2011 12:12 AM, Singlish King wrote:
>> On 22/02/2011 04:33, Jerry Stuckle wrote:
>>> On 2/21/2011 3:20 PM, Singlish King wrote:
>> ...
>>>> my bad. i meant server side PHP. basically,
>>>> PHP & Flash somehow have to work together, but how?
>>>
>>> You can't print on the client from the server. The client has to do the
>>> printing.
>> ...
>>
>>
>> you can get Flash to tell PHP what the user chose (eyes, nose,
>> hairstyle) and get PHP to generate a pdf or something printable.
>> but how?
>
> PHP would have to have access to the same graphics Flash does, and build
> an image using the GD libraries.
>
> Why are you even getting PHP involved? Flash can print on the client's
> printer just fine.
>
I have the same confusion.
What I understand from OP so far:
1) Some website holds a Flash movie that allows the visitor to make a
face/drawing/whatever.
2) Then it should be printed (on the client machine I expect)
3) Why not let Flash print????
Google for: flash api print
and you'll get many results.
I have been printing with Macromedia Director (Shockwave) on the web
when the new millennium still had start. But don't ask me now how
exactly. ;-) All I remember it was very easy.
Regards,
Erwin Moller
--
"That which can be asserted without evidence, can be dismissed without
evidence."
-- Christopher Hitchens
|
|
|
Re: Customisable Printing by PHP from Flash [message #172619 is a reply to message #172609] |
Tue, 22 February 2011 09:14  |
The Natural Philosoph
Messages: 993 Registered: September 2010
Karma: 0
|
Senior Member |
|
|
Singlish King wrote:
> On 22/02/2011 04:33, Jerry Stuckle wrote:
>> On 2/21/2011 3:20 PM, Singlish King wrote:
> ...
>>> my bad. i meant server side PHP. basically,
>>> PHP & Flash somehow have to work together, but how?
>>
>> You can't print on the client from the server. The client has to do the
>> printing.
> ...
>
>
> you can get Flash to tell PHP what the user chose (eyes, nose,
> hairstyle) and get PHP to generate a pdf or something printable.
> but how?
Actually of course you CAN print on the client from the server..if the
client is running a wide area line print protocol daemon, as a server,
there is no firewall or NAT in the way, and..you have a fast enough
internet connection.
I did in fact try this as a test once. It does in fact work, but of
course its hopelessly impractical with most clients behind NAT firewalls
on dynamic addresses running broken operating systems like Windows.. and
total idiots behind the keyboard.
|
|
|