You are here: Re: Crosses Fingers « All PHP « IT news, forums, messages
Re: Crosses Fingers

Posted by trippy on 12/06/06 07:46

In article <d18an2hju8m0ofmq9b6urbgumnvg5kbrhr@4ax.com>, Onideus Mad
Hatter took the hamburger meat, threw it on the grill, and I said "Oh
Wow"...

> On Tue, 5 Dec 2006 00:58:26 -0600, trippy <silverbells@tacoshells.com>
> wrote:
>
> >What exactly is it you're trying to do?
>
> I gots nyah:
> http://www.backwater-productions.net/RMXP_CSG/
>
> And when you hit the save button it needs to produce an image that the
> user can actually save to their hard drive.

You can't do it without the actionscript gui. I've looked all up and
down the actionscript API. Nothing in the API lets you do something like
that. You need the export command which only comes from the GUI.

> Problem is that Flash
> can't do that (it can pretty much do everything else, just not save
> stuff unless it's XML...which is rather...dumb).

Very Cute. I like that.

> So I need something
> that can, PHP being the most obvious choice.
>
> The problem I'm having is getting the pixel data to a PHP script so
> that it can build the final image. Right now, if I send over just the
> hex codes, separated by commas I'm looking at roughly 172,032
> characters that need transferred to the script. Tried to use GET
> variables and it just stalled, crashed and said the URI was too long.
>
> So my next plan is to try and compress that data first within the
> Flash file and then once compressed send it to the PHP script that
> will uncompress it and then construct the final image.
>
> I also tried to use POST variables and that didn't work, but I think
> the reason it didn't is because it defaults to GET variables if you're
> sending teh data to an external page/script rather than to the current
> page itself. So I might experiment with that, see if I can get it to
> work first before I try compressing the data.
>

Dude, I don't see it happening. The only way you're going to get it
exported as an image file is to do it through the GUI and Mr. End User
doesn't happen to have that functionality. You can load pretty much
everything and teh Moon but saving's an apparently much different
proposition. Without that, you're pretty fucked when it comes to your
FileReference object's download method. It does make sense, you can't
even right click on something in flash, much less save it to your
computer.

--
trippy
mhm31x9 Smeeter#29 WSD#30
sTaRShInE_mOOnBeAm aT HoTmAil dOt CoM

NP: "Never Again" -- Nickelback

"Now, technology's getting better all the time and that's fine,
but most of the time all you need is a stick of gum, a pocketknife,
and a smile."

-- Robert Redford "Spy Game"

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация